Results 1 to 2 of 2
  1. #1
    ElvisMachuca is offline Member
    Join Date
    Jan 2013
    Rep Power

    Default 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?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Connection reset by peer: socket write error

    Moved from Advanced Java

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 11-22-2012, 06:04 PM
  2. Connection reset by peer: socket write error
    By suthan in forum Networking
    Replies: 1
    Last Post: 09-04-2012, 10:43 AM
  3. I/O Error: Connection reset...
    By dkennelly in forum Java Servlet
    Replies: 5
    Last Post: 09-17-2010, 03:12 PM
  4. Replies: 3
    Last Post: 04-13-2010, 03:43 PM
  5. Replies: 2
    Last Post: 01-24-2010, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts