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

This commit is contained in:
Tatsuhiro Tsujikawa 2014-12-24 00:19:16 +09:00
parent 89291e4010
commit 32943a74b2
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ int Http2Handler::send() {
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
for (;;) {
// 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;
}