> *Subject:* [twsocket] Freeze on TWSocketServer close > *From:* Engi <e...@free.fr> > *To:* "ICS support mailing," <twsocket@lists.elists.org> > *Date:* Fri, 17 Aug 2018 15:38:15 +0200 > > Hi, > > My program (a service) hosts 4 TWSocketServers in main thread. > Sometimes, when I ask the service to stop, the program freeze > after I call TWSocketServer Close function
You are assuming all sockets disconnect instantly and are the freeing the component, when activity may still be happening. You should wait until there are zero clients on the server before freeing it. Stop listening first, so new clients can not connect while you wait, at least one minute or more. Angus -- 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