hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Sending multiple requests over multiple threads - AbderaClient connection getting closed: java.net.SocketException: Software caused connection abort: recv failed
Date Fri, 29 Aug 2008 10:57:04 GMT
On Wed, 2008-08-27 at 23:53 -0700, Sankaraiah G wrote:
> Hi,
> I am facing the problem for Sending multiple requests over multiple threads
> - AbderaClient connection getting closed,Here i am using the AbderaClient
> which is the top of the HttpClient.Can any one help me it is greatfull. i am
> sending my exception stack trace.
> Here some times i am not getting this exception, some times i am getting the
> exception.Could please tell me why it is behaving.
>  java.net.SocketException: Software caused connection abort: recv failed

Most likely the connection was dropped by either the target server or a
some sort of a firewall in between. 

Oleg


> 	at java.net.SocketInputStream.socketRead0(Native Method)
> 	at java.net.SocketInputStream.read(Unknown Source)
> 	at java.io.BufferedInputStream.fill(Unknown Source)
> 	at java.io.BufferedInputStream.read(Unknown Source)
> 	at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
> 	at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
> 	at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
> 	at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373)
> 	at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
> 	at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
> 	at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
> 	at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> 	at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> 	at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
> 	at
> org.apache.abdera.protocol.client.AbderaClient.execute(AbderaClient.java:401)


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message