Community discussion forum

Java - Closing inputstream causes socket to close

  • 5 months ago

    Hi all,

    I have a problem with my server sockets. I can connect fine, and write to the server successfully (I know this as i have checked the logs), but closing the writer causes the socket to become closed. It's still connected, but socket.isClosed() returns true, and i get an error when attempting to read from the socket. Any ideas why this might be?

    Thanks,

    Chris

    Post was edited on 23/06/2009 05:55:18 Report abuse
  • 4 months ago

    it'd better if you share the piece of code.

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback