Change default timeout value for socket cleanup

Hello Folks,

In case, TCP socket is created(listen) and binded by some one, but not
closed perfectly (process killed) then that port seems to be cleanup after
around 60 sec on the QNX system. At that situaion, system reports that
port as ‘TIME_WAIT’ state and I believe the state seems right based on the
handshaking. However, no one cannot use this port until OS kernel clear
this port.

I just want to change the default timeout value of the system.
How to do that?
Thanks.

jungcw@kr.ibm.com wrote:

Hello Folks,

In case, TCP socket is created(listen) and binded by some one, but not
closed perfectly (process killed) then that port seems to be cleanup after
around 60 sec on the QNX system. At that situaion, system reports that
port as ‘TIME_WAIT’ state and I believe the state seems right based on the
handshaking. However, no one cannot use this port until OS kernel clear
this port.

Set the SO_REUSEADDR flag for your socket. Then you can bind to the
port again, while it is in TIME_WAIT.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com