nghttpx: Reset write timer on write

This commit is contained in:
Tatsuhiro Tsujikawa 2017-03-18 21:33:00 +09:00
parent f69b52b1aa
commit 9b5ce36368
1 changed files with 8 additions and 0 deletions

View File

@ -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;
} }