hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Om Narayan" <...@hotmail.com>
Subject Re: IOException Broken pipe
Date Fri, 06 Jun 2003 21:29:31 GMT
I found the problem very quickly once figured out that the broken pipe is
usually caused because the server terminates the communication before the
client expects it.

My problem was caused because the server-side had HttpClient 2.0 beta 1 code
and the client side was using 2.0 alpha 3!
Once I got the two in sync, everything went fine.

Om.

----- Original Message -----
From: "Michael Becke" <becke@u.washington.edu>
To: "Commons HttpClient Project" <commons-httpclient-dev@jakarta.apache.org>
Sent: Friday, June 06, 2003 2:08 PM
Subject: Re: IOException Broken pipe


> Om,
>
> Which version of HttpClient are you using?  Could you give some more
> detail about when this error occurs?  Sample code or a log perhaps.
>
> Thanks,
>
> Mike
>
> Om Narayan wrote:
> > This is probably not directly related to HttpClient module, but I am
getting the following IOException, and am hoping that someone maybe able to
enlighten me. It is not consistent, so makes it harder to track down.
Thanks.
> >
> > Om.
> >
> > DEBUG Thread-1 org.apache.commons.httpclient.HttpConnection -
> > HttpConnection: Exception while writing data
> > java.io.IOException: Broken pipe
> >         at java.net.SocketOutputStream.socketWrite(Native Method)
> >         at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
> >         at
> > org.apache.commons.httpclient.HttpConnection.write(HttpConnection.java:7
> > 53)
> >         at
> > org.apache.commons.httpclient.HttpConnection.write(HttpConnection.java:7
> > 14)
> >         at
> > org.apache.commons.httpclient.HttpConnection.print(HttpConnection.java:8
> > 31)
> >         at
> > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon
> > nectionAdapter.print(MultiThreadedHttpConnectionManager.java:661)
> >         at
> > org.apache.commons.httpclient.HttpMethodBase.writeRequestHeaders(HttpMet
> > hodBase.java:2056)
> >         at
> > org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
> > .java:1991)
> >         at
> > org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBa
> > se.java:2282)
> >         at
> > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
> > :960)
> >         at
> > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:5
> > 78)
> >         at
> > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:4
> > 77)
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org
>
>

Mime
View raw message