Disable http timeouts during throttling
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user