]> git.kaiwu.me - nginx.git/commit
HTTP/2: avoid sending output queue if there's nothing to send.
authorValentin Bartenev <vbart@nginx.com>
Tue, 19 Jul 2016 17:30:21 +0000 (20:30 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 19 Jul 2016 17:30:21 +0000 (20:30 +0300)
commitce6eb33d15f1efd3c418ce7688ed6de3af81cae9
treeb9963cfe2afe37cd5b96d61e649d4a3fc2988617
parentda852aa468db80f9e5138aea81a1bebb90e0be51
HTTP/2: avoid sending output queue if there's nothing to send.

Particularly this fixes alerts on OS X and NetBSD systems when HTTP/2 is
configured over plain TCP sockets.

On these systems calling writev() with no data leads to EINVAL errors
being logged as "writev() failed (22: Invalid argument) while processing
HTTP/2 connection".
src/http/v2/ngx_http_v2.c