Welcome! Log In Create A New Profile

Advanced

Re: bug in spdy - 499 response code on long running requests

December 22, 2013 07:12AM
I noticed the same behavior when sending long running requests (>10secs) from chrome with nginx running as a reversy proxy with spdy enabled. What happens is that chrome sends a PING frame, then sends the request, then if it doesn't get a PING reply it will close the connection and resend the request.
You can see the handling of PING failure here:
http://git.chromium.org/gitweb/?p=chromium/src/net.git;a=blob;f=http/http_network_transaction.cc;h=a6d50699c0f1854036772b67c2a0ea1b1e62ae63;hb=HEAD#l1409

The reason chrome isn't getting a PING reply within 10secs is because nginx queues the ping reply and doesn't send it until it gets a response from upstream.
I added a call to ngx_http_spdy_send_output_queue() in ngx_http_spdy_state_ping() to send the PING reply immediately and it solved the problem.

Bahaa Aidi
Subject Author Posted

bug in spdy - 499 response code on long running requests

Anonymous User June 23, 2013 01:31AM

Re: bug in spdy - 499 response code on long running requests

Valentin V. Bartenev June 24, 2013 10:22AM

Re: bug in spdy - 499 response code on long running requests

Anonymous User June 24, 2013 11:26PM

Re: bug in spdy - 499 response code on long running requests

bahaa December 22, 2013 07:12AM

Re: bug in spdy - 499 response code on long running requests

Anonymous User December 22, 2013 05:47PM

Re: bug in spdy - 499 response code on long running requests

bahaa December 22, 2013 06:19PM

Re: bug in spdy - 499 response code on long running requests

Valentin V. Bartenev December 23, 2013 09:12AM

Re: bug in spdy - 499 response code on long running requests

nanne April 15, 2014 12:50PM

Re: bug in spdy - 499 response code on long running requests

Valentin V. Bartenev April 15, 2014 01:14PM

Re: bug in spdy - 499 response code on long running requests

nanne April 16, 2014 06:23AM

Re: bug in spdy - 499 response code on long running requests

Valentin V. Bartenev April 16, 2014 07:20AM

Re: bug in spdy - 499 response code on long running requests

nanne April 16, 2014 08:01AM

Re: bug in spdy - 499 response code on long running requests

Anonymous User October 12, 2013 01:19AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
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