Can response code be 444 in error_page

Maxim Dounin mdounin at mdounin.ru
Wed Nov 5 12:48:21 UTC 2014


Hello!

On Wed, Nov 05, 2014 at 04:32:15AM -0500, bluekyu wrote:

> Hello.
> 
> I want to reject a connection when some errors (400, 403, ...) occur, so I
> used error code 444 in error_page like this:
> 
> error_page 400 =444 @reject_conn;
> location @reject_conn {
>     return 444;
> }
> 
> When I tested it, the network connection was waiting continuously, not
> closed (reseted).
> I wonder if this situation is right.
> I also searched internet and read a document, but I could not find a
> answer.
> 
> Is this situation right? (or, does the code work, well?)

That's a known bug, and we even have a ticket for it (though it 
was filed in Russian by the reporter):

http://trac.nginx.org/nginx/ticket/274

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list