Commit 32943a74 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Just use socket send buffer and don't count our own buffer size

parent 89291e40
...@@ -398,7 +398,7 @@ int Http2Handler::send() { ...@@ -398,7 +398,7 @@ int Http2Handler::send() {
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf)); util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
for (;;) { for (;;) {
// Check buffer length and break if it is large enough. // Check buffer length and break if it is large enough.
if (evbuffer_get_length(output) + evbbuf.get_buflen() >= 65536) { if (evbuffer_get_length(output) > 0) {
break; break;
} }
......
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