Home > Back-end >  Why old in Socket programming Connection reset exception
Why old in Socket programming Connection reset exception

Time:10-31

Recently in the socket programming, this piece, but in writing some client server send each other messages or transfer files in the code there will always be
Java.net.SocketException: Connection reset
The at java.net.SocketInputStream.read (Unknown Source)
The at java.net.SocketInputStream.read (Unknown Source)
The at Java. IO. A DataInputStream. Read (Unknown Source)
Ats Socket. FileClient $ReceiveMessageThread. Run (vicinity Java: 45)
This abnormal quote us
False statements is
While ((a=dis. Read (b))!=1)
Or
Out. WriteUTF (" Server sends the message "+ message);
Similarly,,,
A mystery, and how to solve? Hope everybody to give directions!

CodePudding user response:

I know,,, close issue,,

CodePudding user response:

What causes it? Baidu says it is a closed, but I don't have it closed
  • Related