Apache HTTPClient throws java.net.SocketException: Connection reset for many domains

前端 未结 3 693
北恋
北恋 2020-12-10 06:07

I\'m creating a (well behaved) web spider and I notice that some servers are causing Apache HttpClient to give me a SocketException -- specifically:

java.net         


        
3条回答
  •  余生分开走
    2020-12-10 06:24

    Try getting a network trace using wireshark, and augment that with log4j logging of the HTTPClient. That should show why the connection is being reset

提交回复
热议问题