|
ECS Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Re: [ecs] RH9 Linux *hanging on* to sockets Mark Gilmore Wed, 24 Sep 2003 04:34:41 -0700 |
Wed, 24 Sep 2003 04:34:41 -0700
Solution found.
For those interested, see http://klement.dstorm.net/rpg/socktut/tutorial.pdf
and search for SO_REUSEADDR.
At 03:53 AM 9/24/2003 -0700, you wrote:
>I am finding that RH9 seems to "hang on" to *closed* server
>sockets for some 60 seconds after a pgm terminates normally.
>I.E. if I accept a connection from a client, close() the socket, and exit,
>then that ip/port will be "already in use" if I attempt to bind it to a socket
>on a subsequent execution.
>This state will remain for around 60 seconds, after which time it is "freed".
>I have tried various combinations of close() and shutdown().
>Any thoughts ?
>Thanks,
>
>Mark Gilmore
>http://OmnipotenceSoftware.com
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.520 / Virus Database: 318 - Release Date: 9/18/2003
Mark Gilmore
http://OmnipotenceSoftware.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 9/18/2003
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects