hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject [PATCH] Re: java.net.SocketException
Date Wed, 18 Dec 2002 20:44:36 GMT
Maybe we should change readResponse to catch IOException and rethrow it 
as a HttpRecoverableException? --> See patch

Please try if this fixes your problem.

Odi

Ps. Would like a test case for this one though.

Adam Jack wrote:
  > java.net.SocketException
> [java.net.SocketException: Connection reset by peer: JVM_recv in socket
> input stream read] (java.net.SocketException)java.net.SocketException:
> Connection reset by peer: JVM_recv in socket input stream read at
> java.net.SocketInputStream.socketRead0(Native Method) at
> java.net.SocketInputStream.read(SocketInputStream.java:116) at
> java.net.SocketInputStream.read(SocketInputStream.java:144) at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:76
> 4) at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.j
> ava:1843) at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.jav
> a:1608) at
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.j
> ava:2266) at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:862
> ) at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:550)
> at org.apache.commons.httpclient.HttpClient.executeMethod

Mime
View raw message