Highlighted
Flight Engineer
Flight Engineer
  • 403 Views

what is “java.net.SocketException: Connection reset”

Hi All,

 

in the JVM log “ java.net.SocketException: Connection reset” .

 

what are the causes for above exception and below might be the causes but not sure .

 

finally , I think issue might be “web container “ full or DB Connection unavaible(idle) remote location or requests reached more on JMS end or network delay receive packet information or big transactions  but not sure the cause .

 

how to fix or how to debug this issue. 

 

I hope , I clearly informed about the issue. Could you please guide me for debug or fix this issue. 

 

0 Kudos
1 Reply
Highlighted
  • 127 Views

Re: what is “java.net.SocketException: Connection reset”

This SocketException occurs on the server side when the client closed the socket connection before the response could be returned over the socket. For example, by quitting the browser before the reponse was retrieved. Connection reset simply means that a TCP RST was received. TCP RST packet is that the remote side telling you the connection on which the previous TCP packet is sent is not recognized, maybe the connection has closed, maybe the port is not open, and something like these. A reset packet is simply one with no payload and with the RST bit set in the TCP header flags. There are several possible causes.

The other end has deliberately reset the connection, in a way which I will not document here. It is rare, and generally incorrect, for application software to do this, but it is not unknown for commercial software.

More commonly, it is caused by writing to a connection that the other end has already closed normally. In other words an application protocol error.

It can also be caused by closing a socket when there is unread data in the socket receive buffer.

 

0 Kudos
Reply
Loading...
Join the discussion
You must log in to join this conversation.