![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Telnet timout question | Acleoma | UNIX for Dummies Questions & Answers | 4 | 02-23-2005 08:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
tcp timout
I am led to understand that there when a port is bound for a tcp connection...once that connection is closed there is a timeout period before that port can be reused ... and the software I am using shows that. How long is this timeout - what affects it and is there anyway to reuce the timeout?
|
|
||||
|
Okay cool - so no hard and fast rule....especially as I'm working across a number of platforms. I have since noticed that closing the connection has a much shorter time out thank a kill. So I'm happy enough with the delay now. Thanks
![]() |
|
||||
|
The TIME_WAIT state follows the termination of a TCP connection and it lasts for double the time MSL (Maximum Segment Lifetime).
The MSL is the time required for a segment to travel from the source to the destnation. The TIME_WAIT state varies from two to four minutes, usually. If you want to reduce this time period you have to set the SO_LINGER socket option and set the l_linger member of the struct linger to zero. This will cause TCP to send a RST message instead of the normal termination messages, when the close system call is executed. Allthough that will abort the TIME_WAIT state it is not a good idea to do so, because there is the possibility to receive a segment from the previous connection. Last edited by developer; 12-14-2001 at 09:27 PM.. |
|
||||
|
Wonderful! developer.
Just as the descripition achieved by Mr. W.Richard Stevens in his famous "UNIX Network programming Volume 1", the TIME_WAIT state is friendly to all of us. So obviously avoiding this port state is not a wise choice! |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|