Re: NT Service and Sockets



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


.



Relevant Pages

  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #2]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • Re: Socket Exception
    ... In this case the server most likely rejected your ... connection. ... Each command is a new socket connection that is opened and closed ... /// Required designer variable. ...
    (microsoft.public.win32.programmer.networks)
  • Re: attn:MVPs
    ... winsock dll to the managed .net environment. ... I have an asynchronous TCP socket that listens for data from ... The Slave should not initiate any connection requests/ send other messages ... EXCEPT the acknowledgement for the incoming messages from master, ...
    (microsoft.public.dotnet.framework)