Re: NT Service and Sockets
- From: Dirk Claessens <No@xxxxxxxxxxx>
- Date: Wed, 18 Oct 2006 18:52:29 GMT
On 2006-10-18, Steve West (83.104.9.92) wrote in
message <eh5dfn$7uo$1$8302bc10@xxxxxxxxxxxxxxxx>
Now every so often, when it opens the connection it reports "Socket already in use". No it bl**dy well isn't.
<mode = guessing>
When a connection is closed, the system puts the socket previously associated with that connection in the so-called TIME_WAIT state for approx. 120 seconds, in order to detect (and discard!) any trailing packets which may still arrive if things went wrong during closure of the connection.
IIRC, the ICS-components have a "re-use socket" option somewhere. If this option is enabled, and a new connect is attempted within the foresaid time period => bingo!
</mode>
--
Dirk.
No trees were killed in the creation of this message;
however, many electrons were terribly inconvenienced.
http://users.pandora.be/dirk.claessens2
.
- Follow-Ups:
- Re: NT Service and Sockets
- From: Steve
- Re: NT Service and Sockets
- References:
- NT Service and Sockets
- From: Steve West
- NT Service and Sockets
- Prev by Date: Re: {$ELSEIF} not working in Delphi 2006 ?
- Next by Date: Re: Detecting WIN32 or .NET example in a compiler directive
- Previous by thread: NT Service and Sockets
- Next by thread: Re: NT Service and Sockets
- Index(es):
Relevant Pages
|