Peeter Joot's (OLD) Blog.

Math, physics, perl, and programming obscurity.

Link dump for TIME_WAIT netstate state.

Posted by peeterjoot on September 14, 2011

One of the db2 processes, when crashed on purpose (or due to coding error) occasionally hits socket in use errors on reconnect, which shows as the TIME_WAIT state in ‘netstat -n -p -a’ output. I suspect that the code in question may want to use SO_REUSEADDR, to allow the code to force a reconnect on restart.

I’ll have to follow up with the owners of the code in question, although I probably have to figure out how to reproduce this reliably first. I wonder if this has been considered and if there are undesirable side effects to using the SO_REUSEADDR socket option in this code?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: