On Fri, 2017-12-01 at 10:16 +0000, Kulkarni, Gopalkrishna wrote: > Hi, > Thanks for the input! > > My question is there any explicit settings we need to have for this > HTTP client to avoid this error. > In our landscape we are using Apache Camel. As part of one of the > Camel route, we are using HTTP client (version 4.1.3). > Is there any known issues with Apache Camel and HTTP Client? >
Gopal It is impossible to recommend anything because it is impossible to determine with any reasonable degree of confidence what has been causing the issue in the first place. All I can say that one may choose to re-try requests failed due to a SocketException as long as those requests are idempotent. Oleg > Regards, > Gopal > > -----Original Message----- > From: Oleg Kalnichevski [mailto:[email protected]] > Sent: Thursday, November 30, 2017 8:39 PM > To: HttpClient User Discussion <[email protected]> > Subject: Re: Http client version 4.1.3 resulting in > java.net.SocketException: errno: 32 (Broken pipe) > > On Thu, Nov 30, 2017 at 12:09 PM, Kulkarni, Gopalkrishna > <[email protected]> wrote: > > Hi, > > When attempting to send large payload (Payload with 9 MD), we are > > getting a Broken pipe error (exception detail below). What is > > strange > > is, even we give a wrong service address and attempt > > httpclient.execute(request), we get this error. > > > > I know this topic has been discussed but those outputs are not > > helping us a lot. > > The HTTP Client version we are using is 4.1.3. > > > Gopalkrishna > > java.net.SocketException: (Broken pipe) type of exceptions are > almost > always local environment specific and are very unlikely to be caused > by > the client in the first place. > > Oleg > > > > > > > a#Error in processing Mime message: java.net.SocketException: > > errno: > > 32 (Broken pipe), error: Write failed (local port 44419 to address > > 10.121.21.175 (vsa3023032.od.sap.biz), remote host > > unknown)java.net.SocketException: errno: 32 (Broken pipe), error: > > Write failed (local port 44419 to address 10.121.21.175 > > (vsa3023032.od.sap.biz), remote host unknown) > > at java.net.SocketOutputStream.socketWrite0(Native > > Method) > > at > > java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115 > > ) > > at > > java.net.SocketOutputStream.write(SocketOutputStream.java:161) > > at > > sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:377) > > at > > sun.security.ssl.OutputRecord.write(OutputRecord.java:363) > > at > > sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.ja > > va:849) > > at > > sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:820) > > at > > sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122) > > at > > org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractS > > essionOutputBuffer.java:153) > > at > > org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLeng > > thOutputStream.java:114) > > at > > org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLeng > > thOutputStream.java:120) > > at > > org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java > > :68) > > at > > org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper. > > java:96) > > at > > org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWra > > pper.writeTo(EntityEnclosingRequestWrapper.java:108) > > at > > org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerial > > izer.java:120) > > at > > org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity > > (AbstractHttpClientConnection.java:264) > > at > > org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEnti > > ty(AbstractClientConnAdapter.java:224) > > at > > org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequ > > estExecutor.java:255) > > at > > org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExe > > cutor.java:123) > > at > > org.apache.http.impl.client.DefaultRequestDirector.tryExecute(Defau > > ltRequestDirector.java:647) > > at > > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultR > > equestDirector.java:464) > > at > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttp > > Client.java:820) > > at > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttp > > Client.java:754) > > at > > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttp > > Client.java:732) > > > > Regards, > > Gopal > > +91 9972567432 > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
