Home > Net > Excuse me, my side every time the TCP receive after a period of time will automatically receive less
Excuse me, my side every time the TCP receive after a period of time will automatically receive less
Time:09-23
Now I've a feeling that was the cause of the network, because sometimes I can connect to other server has been receiving data for an hour or two, but sometimes more than ten minutes, there is no data, returns no data should not happen, have agreed per 5 s will send heartbeat packets to me, This is the code I receive
I have a TCP connection, when no data is my connection state is true, not disconnected,
This exactly is what excuse me?
CodePudding user response:
Use caught software analysis, check whether actually received data, sometimes we feel not receive data is their own problems, may be the other party didn't send me, use caught software to judge the question of which side is,
CodePudding user response:
Write a log TXT file, only receive data and time record for the last time, and the amount of data has been received
CodePudding user response:
Agree with above suggestion to make a log is one of the best can detect last time and then gradually