Commit 82320d6e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Reset write buffer on empty

parent 7db18647
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment