Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#590 closed defect (invalid)

444 response violates SPDY protocol

Reported by: Chris Lee Owned by:
Priority: minor Milestone:
Component: nginx-module Version: 1.6.x
Keywords: spdy Cc:
uname -a: Linux XXXXXXXXX 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.6.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=stderr --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_addition_module --with-http_degradation_module --with-http_gzip_static_module --with-http_realip_module --with-http_spdy_module --with-http_ssl_module --with-http_stub_status_module --without-http_autoindex_module --without-http_browser_module --without-http_empty_gif_module --without-http_fastcgi_module --without-http_geo_module --without-http_limit_conn_module --without-http_limit_req_module --without-http_memcached_module --without-http_referer_module --without-http_scgi_module --without-http_split_clients_module --without-http_ssi_module --without-http_upstream_ip_hash_module --without-http_upstream_least_conn_module --without-http_userid_module --without-http_uwsgi_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --with-cc-opt='-O2 -g' --with-openssl=../openssl-1.0.1h

Description

When returning the magic 444 response on a SPDY connection, nginx is closing the connection which causes the browser to experience a SPDY_PROTOCOL_ERROR. The SPDY connection should be cleanly shutdown.

Change History (2)

comment:1 by Maxim Dounin, 9 years ago

Resolution: invalid
Status: newclosed

The 444 status code is a special code to immediately close the connection. If you don't want this to happen - don't use it.

comment:2 by Sparr Risher, 9 years ago

"immediately close the connection" should include cleanly closing the SPDY connection. Ignoring the SPDY state is explicitly NOT closing the connection, it's just being left hanging.

Note: See TracTickets for help on using tickets.