Official reasons for “Software caused connection abort: socket write error”

后端 未结 14 1966
别跟我提以往
别跟我提以往 2020-11-21 07:21

Given this stack trace snippet

Caused by: java.net.SocketException: Software caused connection abort: socket write error
&nbs

14条回答
  •  你的背包
    2020-11-21 08:09

    I have seen this most often when a corporate firewall on a workstation/laptop gets in the way, it kills the connection.

    eg. I have a server process and a client process on the same machine. The server is listening on all interfaces (0.0.0.0) and the client attempts a connection to the public/home interface (note not the loopback interface 127.0.0.1).

    If the machine is has its network disconnected (eg wifi turned off) then the connection is formed. If the machine is connected to the corporate network (directly or vpn) then the connection is formed.

    However, if the machine is connected to a public wifi (or home network) then the firewall kicks in an kills the connection. In this situation connecting the client to the loopback interface works fine, just not to the home/public interface.

    Hope this helps.

提交回复
热议问题