Hi, I;m Using program where it Requests data from a remote server and it gives data. (see Link) I have written a Custom Program to above remote server where it sends request but doesn't get data . It send a RST and drops the session. (see Link) Please let me know what is the issue (WireShark Logs are attached in the Links) asked 05 Mar '13, 03:46 Irsh |
2 Answers:
In your second (faulty) capture the client sends one packet of data to the server and the server sends a FIN at frame 438 approx 7 seconds after the client data indicating it's closing the connection. All the client can do now is close the connection from its side and open a new one. The client attempting to send further data after the FIN (frame frame 440) will cause the server to send the RST as it's not interested. Looking at your good capture the client data sent to the server seems to be a little different from the bad capture, and the client sends two items of data (frames 775, 789) before the server responds with data (frame 790). So, your client stack needs to behave properly on receipt of a FIN and the client application needs to send the correct data to the server. answered 05 Mar '13, 05:00 grahamb ♦ |
If I compare the two connections I see this: In W2.pcapng (session that gets closed quickly):
As there is no such (large) time gap in W1.pcapng, I guess the server application closes the connection as it runs into an application specific timeout. Please check, why your client application stops sending data after the first chunk of data. Regards answered 05 Mar '13, 11:10 Kurt Knochner ♦ |