hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vasudevan Comandur <vcoman...@gmail.com>
Subject Re: Facing an issue with a portal throwing socket Timeout Exception
Date Fri, 25 Aug 2017 14:52:11 GMT
On 25 August 2017 at 19:51, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Fri, 2017-08-25 at 19:23 +0530, Vasudevan Comandur wrote:
> > Thanks Oleg for your reply.
> >
> > The Wireshark trace shows clearly that data was coming in
> > chunks/frames and
> > also got assembled finally with HTTP headers.
> > Can JRE close the socket on its own when it receives TCP Flags [FIN,
> > PSH,
> > ACK] in the frame without the caller closing the socket?
> >
>
> All sorts of things can happen between the OS TCP/IP stack and the
> application layer of JRE especially on Windows. I doubt JRE would close
> the socket on its own but the OS could.
>

   Are you saying that Linux platform is better?. Unfortunately, some
clients use
   Windows environment only.

>
>
> > Is there any other solution other than trying with different JDK
> > versions?
> >
>
> 1.8.0.102 sounds reasonably stable to me.
>
> What I would do though is to make sure that connections do not stay
> alive too long by imposing a total time to live, say, under 30 seconds,
> as false NoHttpResponseException tend to occur with connections that
> stay idle for some while.
>

    I am using HTMLUnit and how do I set the ttl value?.  Is there a way to
set the value?

Regards
 Vasu

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message