tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* How to clean up a CLOSE_WAIT socket
@ 1997-02-04 21:55 Pedro Jose Serrahima Bartolome
  0 siblings, 0 replies; only message in thread
From: Pedro Jose Serrahima Bartolome @ 1997-02-04 21:55 UTC (permalink / raw)
  To: tru64-unix-managers

Hi all, 

I'm programming a client/server application that sometimes crash
abnormally, leaving one socket in CLOSE_WAIT state, as indicated
by netstat command. 

My problem is not why the application crashed, but the fact that 
I don't know how to clean up this socket, and then, I cannot restart
the program because the bind C function fails due to the error :
 'address alrady in use' caused by the presence of this CLOSE_WAIT
state socket. 

Up to this moment, the only way I've found to solve this is restarting
the computer, but, of course, this is not a good solution. 

the O.S is Dunix 4.0 and 3.2.

Thanks in advance for any help. 

Pedro Serrahima
IIC Madrid
Spain

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-04 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-04 21:55 How to clean up a CLOSE_WAIT socket Pedro Jose Serrahima Bartolome

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox