twsocket-boun...@elists.org schrieb am 08.03.2012 15:12:18: > [Bild entfernt] > > Re: [twsocket] USERPostMessageLimit > > Arno Garrels > > an: > > ICS support mailing > > 08.03.2012 15:12 > > Gesendet von: > > twsocket-boun...@elists.org > > Bitte Antwort an ICS support mailing > > mfisc...@bfe.tv wrote: > > Hi, > > i am using the Standard TWSocket in a Server and round about 70 > > Clients. After a Client is connected to the Server, the Client starts > > immediately to send string messages. After some sort of filtering the > > messages are broadcasted to a subset of all connected Clients. > > Especially at start up some clients send up to 10.000 messages with > > an average size of 40 bytes. > > Have you already tried to include wsoNoReceiveLoop in client objects' > ComponentOptions? Also are those large amount of socket messages sent > in a blocking loop? If so, change that to send the next message when > the previous one actually has been sent, that is when event OnDataSent > triggers.
I already use wsoNoReceiveLoop in the ComponentOptions. The problem is indeed that the large amount of socket messages is send in a blocking loop. Your proposal would be a appropriate work around, but i think this will slow down the communication. > > > Sometimes it happens, that in the Server the OnDataAvaiable-Callback > > stops to be triggered. > > If i call receive(nil,0) on the affected socket, everything gets back > > working correctly. > > In my opinion some postmessage-calls in the socket are discarded > > because the windows message queue for the server process is full. > > If i set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows > > NT\CurrentVersion \Windows\USERPostMessageLimit to Value of 50.000 > > Everything seems to be working fine. > > IMO TWSocket should be changed to raise an Exception if a call to > PostMessage() fails, currently it doesn't check the PostMessage() > return value. This would be as suitable solution, especially for environments with more than 10.000 Client. Regards, M. Fischer > > -- > 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 -- 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