nghttpd: Just use socket send buffer and don't count our own buffer size
This commit is contained in:
parent
89291e4010
commit
32943a74b2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue