Welcome! Log In Create A New Profile

Advanced

Re: Status code 000 in the logs

Maxim Dounin
September 16, 2013 12:48PM
Hello!

On Mon, Sep 16, 2013 at 12:22:17PM -0400, monkeybrain wrote:

> What does status code 000 mean in the Nginx logs? I have the following in
> the config:
>
> location = /get-img.pl
> {
> limit_req zone=slow burst=10;
> proxy_pass http://service_perl;
> }
>
> get-img.pl generates an image, writes it to disk and then returns
> "X-Accel-Redirect" to the image. Everything seems to be working just fine, I
> see delayed responses because of limit_req in the logs (with code 200).
> Sometimes there are responses with code 503 for "greedy" clients that exceed
> the burst=10 parameter. All as expected.
>
> However, occasionally I see a bunch of requests (around 5 to 20 within a few
> seconds of each other) with status code 000 and 0 for the body size in the
> logs. They are always from the same IP address for the entire bunch, so I'm
> guessing it's requests that already went through internal "X-Accel-Redirect"
> redirect and then something happened. Connection aborted? Something else?
> Why not status code 503? That's where you come in with a helpful
> explanation. :)

It happens if client closes connection whily waiting for limit_req
delay, and correct code to log is 499 (client closed request).
This is already fixed in 1.5.3 with the following commit:

http://hg.nginx.org/nginx/rev/aadfadd5af2b

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Status code 000 in the logs

monkeybrain September 16, 2013 12:22PM

Re: Status code 000 in the logs

Maxim Dounin September 16, 2013 12:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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