nghttpx: Reset write timer on write
This commit is contained in:
parent
f69b52b1aa
commit
9b5ce36368
|
@ -730,6 +730,10 @@ ssize_t Connection::write_clear(const void *data, size_t len) {
|
||||||
|
|
||||||
wlimit.drain(nwrite);
|
wlimit.drain(nwrite);
|
||||||
|
|
||||||
|
if (ev_is_active(&wt)) {
|
||||||
|
ev_timer_again(loop, &wt);
|
||||||
|
}
|
||||||
|
|
||||||
return nwrite;
|
return nwrite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -753,6 +757,10 @@ ssize_t Connection::writev_clear(struct iovec *iov, int iovcnt) {
|
||||||
|
|
||||||
wlimit.drain(nwrite);
|
wlimit.drain(nwrite);
|
||||||
|
|
||||||
|
if (ev_is_active(&wt)) {
|
||||||
|
ev_timer_again(loop, &wt);
|
||||||
|
}
|
||||||
|
|
||||||
return nwrite;
|
return nwrite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue