TCP connection timeout

I have been asked this question by my colleagues a few times, and every time I was puzzled. I got the answer a long back but it was not satisfactory. The question is: What will happen to a TCP connection which is in ESTABLISHED state, when you unplug the network connection? According to the netstat output, the connection will remain in ESTABLISHED state, but you will not be able to send data (of course). Still, while making a call to send(), no error will be returned until the send buffer is full. The explanation lies in the following link:

Nice read!! 


5 thoughts on “TCP connection timeout

  1. LOL…. it happen every time…remember how buch used to sing song on the day of the exam…listening to that i remeber the famous story of donkey who want to song at night while eating… :D …

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s