• Advertisement

Archived

This topic is now archived and is closed to further replies.

help: tcp socket lost package

This topic is 5387 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Connection with two blocking tcp sockets. when i send message with high frequency, some package were lost. what''s the reason and how could i solve the problem?

Share this post


Link to post
Share on other sites
Advertisement
Your packets are not lost, they''re melt together due to the Nagle''s Algorithm. You have to write a protocol able to cut down those melted messages before working with them.

Write down everything received from the server in a log file, you will understand easily how to deal with that.

Share this post


Link to post
Share on other sites

  • Advertisement