Opened 9 years ago

Closed 6 years ago

#905 closed enhancement (fixed)

TIME_WAIT on return 444

Reported by: vladimir.golovin00@… Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.9.x
Keywords: 444 linger so_linger Cc:
uname -a:
nginx -V: nginx/1.9.11

Description

Hello

We noticed that when using return 444; the socket is left in TIME_WAIT.
We think it could be a great enhancement to use so_linger on the socket when using 444 so it doesn't stay in time_wait, or eventually make an option for it.

Change History (4)

comment:1 by vladimir.golovin00@…, 9 years ago

I mean so_linger with timeout 0 like reset_timedout_connection as it's great to get rid of unwanted users quickly without wasting resources.

comment:2 by maxim, 9 years ago

Milestone: 1.9

Ticket retargeted after milestone closed

comment:3 by Ruslan Ermilov <ru@…>, 6 years ago

In 7313:e45f09198dab/nginx:

Allow resetting connections closed by "return 444" (ticket #905).

If reset_timedout_connection is on, TCP connections closed by
"return 444" will be reset instead of a normal close.

comment:4 by Ruslan Ermilov, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.