How to solve the problem that socket communication always fails? Socket persistent connection

phenomenon?
I have received the data, but after receiving the data, socket is closed. I can"t send a heartbeat packet every 3 seconds. The server said that when I sent me the data, I turned off socket, but I didn"t close it. I don"t know why.

socket java.net.SocketException: Broken pipe (, this is an error)

Mar.06,2021
Menu