]> git.kaiwu.me - nginx.git/commit
SPDY: always push pending data.
authorValentin Bartenev <vbart@nginx.com>
Mon, 23 Mar 2015 18:04:13 +0000 (21:04 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 23 Mar 2015 18:04:13 +0000 (21:04 +0300)
commit0e853129ac857bef8d8553a0f90156bb7bd22fb3
tree3be8c738bad3636044aaf3e7ea73bf645534a66f
parent44586bf5ee34a56f877ab04dc79fed279e1d52cb
SPDY: always push pending data.

This helps to avoid suboptimal behavior when a client waits for a control
frame or more data to increase window size, but the frames have been delayed
in the socket buffer.

The delays can be caused by bad interaction between Nagle's algorithm on
nginx side and delayed ACK on the client side or by TCP_CORK/TCP_NOPUSH
if SPDY was working without SSL and sendfile() was used.

The pushing code is now very similar to ngx_http_set_keepalive().
src/http/ngx_http_spdy.c