Home > other >  The socket data receiving delay how to solve??
The socket data receiving delay how to solve??

Time:09-28

Recently implemented a function is: images to the server, the server to identify and send instructions to the client, but from the client to upload pictures only took 30 ms, but receive instruction the recv function is spent 140 ms, I am a serial, single thread blocking receive, server-side processing time my test result is about 15 ms, that is to say, the remaining 120 ms or so is the use in the transport, TCP communications has been set to nodelay, but setting and not setting the effect is the same, want to ask you a great god have a similar situation, how to solve? Network bandwidth is no problem, it is two computers directly connected with Ethernet cable, 65500 time of about 2 ms ping, development environment for Windows 7 x64 VS2005, glad, thank you

CodePudding user response:

I also encountered similar problems, the data transmission can be received in the past, no glue bag bag, but sometimes there will be a delay, sometimes looks like send two data at the same time, the two data arrive at the same time, I in the study, can solve this problem

CodePudding user response:

A smaller unit recv buff Settings?

CodePudding user response:

Bloggers, is finally solved, please?
  • Related