Welcome! Log In Create A New Profile

Advanced

Spdy - Double Status header

Matthieu Tourne
June 19, 2012 09:14PM
Hi,

I think, I've found an interesting corner case with the recent Nginx
SPDY support.
I'm using the latest : http://nginx.org/patches/spdy/patch.spdy-37.txt

I connect to Nginx using SPDY, and then proxy_pass to another server,
with a location similar to this :

location /redirect {
add_header 'Status' '301 Moved Permanently';
rewrite (.*) / permanent;
}


This causes Nginx to return 2 Spdy ":status" headers, which I guess is
disallowed by the protocol.


This is the output from spdycat (https://github.com/tatsuhiro-t/spdylay/)
Chrome reports a similar error.

[ 0.141] [INVALID; status=PROTOCOL_ERROR] recv SYN_REPLY frame
<version=2, flags=0, length=227>
(...)
status: 301
status: 301 Moved Permanently


Note that this can be fixed using configuration to hide any potential
"Status" header returned by the second server, before the Spdy
response is generated.
But the code should probably handle this ?

Matthieu

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Spdy - Double Status header

Matthieu Tourne 1303 June 19, 2012 09:14PM

Re: Spdy - Double Status header

Valentin V. Bartenev 430 June 20, 2012 11:44AM

Re: Spdy - Double Status header

Matthieu Tourne 438 June 20, 2012 12:24PM

Re: Spdy - Double Status header

Valentin V. Bartenev 516 June 20, 2012 01:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 258
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready