Welcome! Log In Create A New Profile

Advanced

Re: HTTP status code 499 from long running requests

Anonymous User
June 04, 2013 12:52AM
Maxim,

Does it seem reasonable that the 499 status codes are responsible for double requests? I.E. do you think the client is resending the request after the 499 status?

Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Sat, Jun 01, 2013 at 09:09:55PM -0400, justin wrote:
>
> > Hello, I have long running requests upwards of five minutes that are
> called
> > via ajax (jQuery) (XHR), and hitting a backend PHP script.
> >
> > I am seeing very strange behavior, intermittently calling the script
> twice,
> > even though in Chrome developers tools I only see a single XHR
> request in
> > the network pane. I know that it is running twice because in my
> backend PHP
> > script I write a log to a MySQL database, and I am seeing two
> entries.
> >
> > I took a look at the nginx access log, and seeing HTTP status code
> 499,
> > which seems to be: client closed connection before nginx
> > was able to send anything to client.
> >
> > What is the best way to fix this? Is there a config setting in nginx
> to keep
> > the connection open? Or is the client terminating the request, and
> then
> > reissuing the request, thus way I am seeing two entries?
>
> The 499 code means that _client_ closed connection, and there is
> more or less nothing you can do from nginx side. You have to
> either find a way to ask client to wait longer before it gives up,
> or return something before it gives up.
>
> --
> Maxim Dounin
> http://nginx.org/en/donation.html
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

HTTP status code 499 from long running requests

Anonymous UserJune 01, 2013 09:09PM

Re: HTTP status code 499 from long running requests

Maxim DouninJune 02, 2013 07:06AM

Re: HTTP status code 499 from long running requests

Anonymous UserJune 04, 2013 12:52AM

Re: HTTP status code 499 from long running requests

Maxim DouninJune 04, 2013 07:30AM

Re: HTTP status code 499 from long running requests

Anonymous UserJune 07, 2013 12:23AM

Re: HTTP status code 499 from long running requests

Maxim DouninJune 07, 2013 10:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready