On Thu, Dec 13, 2007 at 02:25:21AM -0500, Daniel Ouellet wrote:
> Otto Moerbeek wrote:
It's easy to force a socket into CLOSE_WAIT
On server:
$ nc -l 10000
On client:
$ nc 10000
That gets you ESTABLISHED on both sides.
^Z the server side
close the client side by typing ^D
The client moves to FIN_WAIT_2, and the server to CLOSE_WAIT.
fg the server process
The client moves to TIME_WAIT and the server socket will disappear.
It's depening on the application if sockets staying in CLOSE_WAIT are
a problem or not: it might be intentional (in the hulp duplex case),
or it might be a program "forgetting" to do a close.
-Otto
BTW: it's volume II that has the state diagram on the inside cover.
Volume I has it in chapter 18, after the discussion of half-close.
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Roland McGrath | Re: Linus 2.6.23-rc1 |
| Rafael J. Wysocki | [Bug #10984] MMC print trace information when resume from suspend |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Corey Minyard | [PATCH 3/3] Convert the UDP hash lock to RCU |
| David Miller | [GIT]: Networking |
| David Miller | xfrm_state locking regression... |
