Results 1 to 2 of 2
- 02-01-2013, 03:22 AM #1Member
- Join Date
- Jan 2013
- Rep Power
java.net.SocketException: Connection reset by peer: socket write error
I created a ServerSocket server class which listens on a given port. The client that connects to serversocket server program at first connects fine. I however, when I terminate the connection and try to reconnect again, even after the socket had been closed and reopened again. I get the SocketException: Connection reset by peer: socket write error....
The serversocket only does is listen for passing packages of information that I send. Once I receive, the socket is close and reopened again for the read receiving task. This is done the same way by the client. The client sends information to the server, and closes the socket it uses once it performs the outputstream function.
But it seems that I cannot reconnect the part of the program once I close the connection to begin with.
Is there a way around this?
- 02-01-2013, 05:55 AM #2
- By philipina in forum NetworkingReplies: 1Last Post: 11-22-2012, 07:04 PM
- By suthan in forum NetworkingReplies: 1Last Post: 09-04-2012, 10:43 AM
- By dkennelly in forum Java ServletReplies: 5Last Post: 09-17-2010, 03:12 PM
- By kuguy in forum NetworkingReplies: 3Last Post: 04-13-2010, 03:43 PM
- By anthrax in forum Advanced JavaReplies: 2Last Post: 01-24-2010, 04:41 PM