nghttpd: Reset write buffer on empty

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-02 13:35:28 +09:00
parent 7db1864766
commit 82320d6e55
1 changed files with 2 additions and 0 deletions

View File

@ -454,6 +454,7 @@ int Http2Handler::write_clear() {
rb_.drain(nwrite);
continue;
}
rb_.reset();
if (fill_rb() != 0) {
return -1;
}
@ -583,6 +584,7 @@ int Http2Handler::write_tls() {
rb_.drain(rv);
continue;
}
rb_.reset();
if (fill_rb() != 0) {
return -1;
}