Strange socket related issue

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,081
Programming Experience
10+
I'm having a problem here:

Two devices from different manfacturers are connecting to my server via TCP
I send the same message to both with Socket.Send
I then return to a waiting Socket.Read loop (the devices must close the connection) and when this call has returned 10 times with no data being read, I exit the function

One of the devices works fine, the other device prints out that a communication error has occurred. I put a network tracing app between the server and the device and both worked fine. Remove the app and one goes back to failing.

I suspect that when communicating directly with a too-slow device the connection dies too early and not all the bytes are sent. Anyone have any pointers to how to make the networking more robust?
 
Back
Top