Bugs item #3158753, was opened at 2011-01-15 09:10 Message generated for change (Tracker Item Submitted) made by reduzent You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=3158753...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: externals Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Roman Haefeli (reduzent) Assigned to: Nobody/Anonymous (nobody) Summary: [iemnet/tcpserver]: unreliable broadcast method
Initial Comment: Under certain circumstances, a 'broadcast' message does not send the data to all connected clients. Apparently this is the case for the very first moment after a new client has connected. Later all messages to clients seem to arrive reliably.
The attached patch exposes the problem, though it's still not easy to trigger it. One has to fiddle around a bit to make it happen. Make sure that one client is connected. The interesting moment is when the second client connects. When connecting it and the 'connection' outlet of the second client outputs '1' (connection established), it sends a message to the server which then is broadcast to all (i.e. both) connected clients.
My interpretation: It seems that the client is earlier in knowing about an established connection and sends its message to the server even before the server is 'aware' of (or finished setting up) the new client.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=3158753...