aio breaks spdy

Valentin V. Bartenev vbart at nginx.com
Sat Aug 16 21:19:29 UTC 2014


On Saturday 16 August 2014 01:27:19 Richard Kearsley wrote:
> attached

Thank you for the report.
Please, try the following patch:

diff -r f1e05e533c8b src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c       Thu Jul 31 13:59:37 2014 +0400
+++ b/src/http/ngx_http_request.c       Sun Aug 17 01:16:50 2014 +0400
@@ -2656,6 +2656,12 @@ ngx_http_writer(ngx_http_request_t *r)
 
     if (r->buffered || r->postponed || (r == r->main && c->buffered)) {
 
+#if (NGX_HTTP_SPDY)
+        if (r->spdy_stream) {
+            return;
+        }
+#endif
+
         if (!wev->delayed) {
             ngx_add_timer(wev, clcf->send_timeout);
         }



More information about the nginx mailing list