Hello,
I already had a similar problem.

If you are on Windows plateform, there a limit of message that can be
queued, for so many user maybe you reached that one.


That was my case with only 30 clients but a lot of small data sent for each
one. When i reach this limit the TWSocketServer simply do not accept no
connection and totally stop working, but the rest of my program was working
perctly.

To avoid that i simply avoid to send lot of message so i concatenated to
call the minimum of Write(String);


MSDN Source :
https://msdn.microsoft.com/fr-fr/library/windows/desktop/ms644944(v=vs.85).a
spx

There is a limit of 10,000 posted messages per message queue. This limit
should be sufficiently large. If your application exceeds the limit, it
should be redesigned to avoid consuming so many system resources. To adjust
this limit, modify the following registry key.


Good luck !
Moro Alexandre.



-----Message d'origine-----
De : TWSocket [mailto:twsocket-boun...@lists.elists.org] De la part de
François Piette
Envoyé : dimanche 12 août 2018 17:02
À : 'ICS support mailing'
Objet : Re: [twsocket] using Twsocket with a few thousand clients


I forget to say that to support a few thousand simultaneous client, it is
likely that yu should pour TWSocketServer code into a thread to service,
let's say, 500 client per thread. And you should probably NOT use the main
thread to run TWSocketServer code.

Be aware that ICS is asynchronous and it will multitask (cooperatively)
nicely within a thread and serve a lot of connections in a single thread.
But this is not infinite : Windows has his limits (Nothing in ICS limit the
number of connections nor the number of threads).

If you are used with some other socket component, you should probably forget
everything you know. ICS has a totally and unique programming model. What is
good for a synchronous blocking socket is NOT what you should do with ICS
which is asynchronous, non-blocking and event driven.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare The author of the
freeware Internet Component Suite (ICS) http://www.overbyte.be




--
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


-- 
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

Reply via email to