java.net.SocketException socket is closed

后端 未结 1 2011
天涯浪人
天涯浪人 2020-12-01 17:38

I am sending Object for client to server modifying that object at server side and resending it to client. Sending object form client to server is fine its working properly b

相关标签:
1条回答
  • 2020-12-01 17:58
    java.net.SocketException socket is closed
    

    This exception means that you closed the socket, and then continued to try to use it.

    os.close();
    

    And you closed it here. Closing either the input or the output stream of a Socket closes the other stream and the Socket.

    0 讨论(0)
提交回复
热议问题