]> git.kaiwu.me - nginx.git/commit
SPDY: send output queue after processing of read event.
authorValentin Bartenev <vbart@nginx.com>
Wed, 15 Jan 2014 13:16:38 +0000 (17:16 +0400)
committerValentin Bartenev <vbart@nginx.com>
Wed, 15 Jan 2014 13:16:38 +0000 (17:16 +0400)
commit1ef5553644e9becd61ac7a6e5d3a673374b947a5
treee82844a9c00df55c082d9b1a8282de5e99adbed6
parent82a1ff31f9ff38ef2fabdff7857fe0fc974e8a8b
SPDY: send output queue after processing of read event.

During the processing of input some control frames can be added to the queue.
And if there were no writing streams at the moment, these control frames might
be left unsent for a long time (or even forever).

This long delay is especially critical for PING replies since a client can
consider connection as broken and then resend exactly the same request over
a new connection, which is not safe in case of non-idempotent HTTP methods.
src/http/ngx_http_spdy.c