robertoschler wrote: > I have a server socket application that uses TWSocketServer. When > clients disconnect, I do get see a SessionClosed event triggered for > the client socket and then the TWSocketServer ClientDisconnect event > handler fires. However, the ClientCount does not go down, and keeps > incrementing with every new incoming connection, even though the > Clients are disconnecting. > > I traced through the TWSocketServer code and I do see the RemoveList > code fired for the component list object that is removing the > disconnecting client socket (as expected), yet the ClientCount keeps > rising. > > What could I be doing wrong that would prevent TWSocketServer from > successfully decrementing the ClientCount?
I've no idea, ClientCount returns Count of the client list so if the client is removed from the list ClientCount must be decremented. Are you able to reproduce this with some demo shipped with the ICS version you use? Which version do you use? -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be