Make pause/resume cross-backend

This commit is contained in:
Alex Hultman
2021-12-15 07:10:38 +01:00
parent 28932572bf
commit c4d62d71fc
2 changed files with 31 additions and 16 deletions
+2 -2
View File
@@ -332,13 +332,13 @@ public:
/* Throttle reads and writes */
HttpResponse *pause() {
Super::uv_pause();
Super::pause();
Super::timeout(0);
return this;
}
HttpResponse *resume() {
Super::uv_resume();
Super::resume();
Super::timeout(HTTP_TIMEOUT_S);
return this;
}