nghttpd: Reset write buffer on empty
This commit is contained in:
parent
7db1864766
commit
82320d6e55
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue