I am having a desktop application which can talk to a server application using TCP/IP. It was working all these days but now we ran into an issue. The log message in the server shows that the socket is disconnected after a while, but we are able to exchange heart beat messages even after that. When i ran the Wireshark tool i am getting this log which i dont know how to interpret.
asked 20 Sep '11, 00:48 Jeeva edited 20 Sep '11, 06:48 Jaap ♦ |
One Answer:
This is a regular output when the client tries to connect to the server, but the server does not accept an incoming connection. You see the client initiating the TCP connection in the first packet, by sending a SYN. Normally the server would react by sending a SYN,ACK himself - but here in packet two you see the server sending back a Reset flagged packet (RST,ACK). This means either the server does not have the application listening on port 843 (check with netstat on the server), or there might be another device in place (firewall, ACL router...) filtering traffic and reacting to connections on port 843 with sending back Reset. answered 20 Sep '11, 01:10 Landi |
Thank you Landi for your response, actually i am not able to put a picture here to show you the complete log that is why it is totaly misleading. After initial connection i am getting SYN,ACK after a while when the connection is dropped i am getting this log message
Which actually points to the application on port 843 running on the server has crashed or because of whatever reasons stopped working. There is no other reason why the server should send back Reset packets, except for those 2 previously mentioned.
RST packet after SYNC only 2 reason for that 1.Server not reachable. 2.Server taking long time to respond.
actually: no.
If the server (the system) is not reachable you will either run into a timeout (firewall dropped packet, last hop - the system - not online) or you will get some ICMP error, if the network is not reachable and that ICMP packet makes it through to your client.
actually: no.
If the server takes a long time to answer you will eventually get an answer after a long time and not a RESET.