Hi, I'll try to give a quick explanation of my project first. I have a TWSocketServer listening for connection on a port. I use the normal client connect / disconnect methods as per the examples. I have two types of device connect even minute or so.
The first device opens a connection, sends an XML stream and then disconnects. The second opens a connection but does nothing else. I then have to pass the internal socket handle to an API (not mine so I don't know anything about its coding). Once the API function completes I have to close the socket on the server end. I do this using the CloseDelayed function. I do all of this from within the ClientConnect event since that's the only time I get anything fire for this type of device. My question is that when I run a test using only the first type of device I notice that the socket handle numbers stay lowish (600 - 800) with lots of reuse. When I test using the second type the handles increment into the 100k's with little reuse. The TWSocketServer component suggests everything is closing ok and had no unexpected open clients. So is everything ok and this is just a winsock way of doing things or is something going on that I need to be aware of. Am I ok calling CloseDelayed within the connect event? Many thanks in advance, I hope I've explained my app in enough detail. -- 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
