1819929 Members
3077 Online
109607 Solutions
New Discussion юеВ

last_ack

 
christian_derek
Regular Advisor

last_ack

Hi,

How can I get around a port that is in LAST_ACK state. I'm currently running hpux 11.23 on an itanium machine. My tcp_fin_wait_2_timeout value is set at 30000 in the nddconf file. Sometime when we stop our listener the process could not restart because of this issue.

Thanks,
2 REPLIES 2
Ivan Krastev
Honored Contributor

Re: last_ack

This script may be helpfull for you - http://www.demailly.com/~dl/force_close_tcp


regards,
ivan
rick jones
Honored Contributor

Re: last_ack

UX isn't Linux but still...

If you are unable to restart a server application because there are previous connections it suggests the server code is broken and needs to be fixed by adding a setsockopt() to set SO_REUSEADDR. That will allow the server to re-establish its LISTEN endpoint while there are still old connections waiting to clean-up.

Killing a connection via ndd/scripts is a _last resort_ , and the tcp_fin_wait_2 timer is a kludge.
there is no rest for the wicked yet the virtuous have no pillows