Socket freeing...

Hi,

I’d like to know if there is a way to free up an occupied socket. For
example, when an application crashes and its socket gets in a CLOSE_WAIT
state? That prevents me from restarting my application correctly.

Thanks for your help. :astonished:)

Frank

Do you mean TIME_WAIT? Set the SO_REUSEADDR socket
option.

-seanb

Frank <fcouderc@oerlikon.ca> wrote:
: Hi,

: I’d like to know if there is a way to free up an occupied socket. For
: example, when an application crashes and its socket gets in a CLOSE_WAIT
: state? That prevents me from restarting my application correctly.

: Thanks for your help. :astonished:)

: Frank