]> 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)
commit6ebe94522a07e294121c8bbbe68e6215345aeba5
treee952541474bd697090c4ec480cfb07f37fa3b70e
parentb034effaf5bdc28a0fff25fd2f24eb3fb84a3b56
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