Good afternoon, when receiving data from the client to the server, an error pops up. Software caused connection abort: recv failed I can not understand what's wrong?

java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.DataInputStream.read(Unknown Source) at Server.downloadFiles(Server.java:307) at Server.logicFiles(Server.java:226) at Server.connect(Server.java:117) at Server.<init>(Server.java:83) at Server.main(Server.java:67) java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.DataOutputStream.writeLong(Unknown Source) at Server.logicFiles(Server.java:223) at Server.connect(Server.java:117) at Server.<init>(Server.java:83) at Server.main(Server.java:67) 

    2 answers 2

    "Received data transmissions on the datastream socket)." Look at this MSDN article . See also the information on the Software Software connection connection abort .

    Typically, this means that a network error has occurred, such as TCP timeout

      WINSOCK Error: Software caused connection abort .

      This usually indicates network problems, such as TCP timeout. Try to sniff traffic on the machine with the same wireshark to identify the problem.

      Try to ping the address.

      Logs router look.