Disable http timeouts during throttling

This commit is contained in:
Alex Hultman
2021-12-15 06:12:09 +01:00
committed by GitHub
parent 6dc4a11d10
commit 28932572bf
+3
View File
@@ -330,13 +330,16 @@ public:
using Super::getRemoteAddressAsText; using Super::getRemoteAddressAsText;
using Super::getNativeHandle; using Super::getNativeHandle;
/* Throttle reads and writes */
HttpResponse *pause() { HttpResponse *pause() {
Super::uv_pause(); Super::uv_pause();
Super::timeout(0);
return this; return this;
} }
HttpResponse *resume() { HttpResponse *resume() {
Super::uv_resume(); Super::uv_resume();
Super::timeout(HTTP_TIMEOUT_S);
return this; return this;
} }