Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 5121:c0f7b94e88ba
Preliminary experimental support for SPDY draft 2.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 20 Mar 2013 10:36:57 +0000 |
parents | 08b36f2afc3f |
children | 9bcf89ca78d2 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Wed Mar 20 10:18:26 2013 +0000 +++ b/src/http/ngx_http_upstream.c Wed Mar 20 10:36:57 2013 +0000 @@ -440,6 +440,13 @@ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "http init upstream, client timer: %d", c->read->timer_set); +#if (NGX_HTTP_SPDY) + if (r->spdy_stream) { + ngx_http_upstream_init_request(r); + return; + } +#endif + if (c->read->timer_set) { ngx_del_timer(c->read); } @@ -1018,6 +1025,12 @@ return; } +#if (NGX_HTTP_SPDY) + if (r->spdy_stream) { + return; + } +#endif + #if (NGX_HAVE_KQUEUE) if (ngx_event_flags & NGX_USE_KQUEUE_EVENT) {