First of all, I apologize for the long explanation of the issue.
I have a simple TCP client. Here is the code snippet:
...... ouputStream = socket.getOutputStream (); . ..... bufferedOutputStream.flush (); Socket.shutdownOutput (); ...... InputStream = socket.getInputStream (); ..... while (r = bufferedReader.read ()! - 1) {feedback read} socket.shutdownInput (); ....... socket.close ();
My TCP client works with many TCP servers except for a particular TCP server, my TCP customer receives no response from that server in the morning and afternoon (server takes time) , But in the evening, at night, and in the morning in the morning, without any problem, fully reacted.
Therefore, I have the wireshark to monitor the network packets during the time of server time.
Wireless inspection snippet in hours:
- Is this TCP server the problem? Or socket Shutdownoptip () and socket.shutdownInput () are responsible for duplicate ACK?
I'm not sure where the problem is because the other server is fine with my TCP client (shutdownApot and shutdownpoint) and that particular server will not respond only during pickup hours (morning and afternoon) Is giving, but is working at other times.
I would be glad if someone gave me suggestions about this issue.
Is this TCP server problem?
The problem is probably with interval network droping packets.
socket.shutdownOutput () and Socket Duplicate ACK?
No
No comments:
Post a Comment