Thanks for the response.

What application ideally needs to do when it gets SocketTimeoutException from 
jetty layer, Please suggest.

Thanks in advance
Sai Sankar Challa

-----Original Message-----
From: Simone Bordet <sbor...@webtide.com> 
Sent: Sunday, May 30, 2021 3:20 PM
To: JETTY user mailing list <jetty-users@eclipse.org>
Cc: Sai Sankar Challa <saisanka...@motivitylabs.com>
Subject: Re: [jetty-users] Not recovering from SocketTimeoutException

Hi,

On Fri, May 28, 2021 at 5:23 PM Sai Sankar Challa via jetty-users 
<jetty-users@eclipse.org> wrote:
>
> Hi Team
>
> Our customer in their environment getting SocketTimeoutException while 
> Connecting to their exchange Urls with Jetty Clients.
>
> Once after started receiving this exception unless we restarted the node, 
> this is not recovered. Customer is expecting not to restart explicitly rather 
> need to handle this exception.
>
> Here is stack trace.
>
> java.net.SocketTimeoutException: Connect Timeout at 
> org.eclipse.jetty.io.ManagedSelector$Connect.run(ManagedSelector.java:
> 812) ~[?:?] at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511
> ) ~[?:1.8.0_232] at 
> java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> ~[?:1.8.0_232] at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.a
> ccess$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_232] at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
> un(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_232] at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1149) ~[?:1.8.0_232] at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:624) ~[?:1.8.0_232] at java.lang.Thread.run(Thread.java:748) 
> [?:1.8.0_232]
>
> Jetty version is : 9.4.22.v20191022
>
> Any pointers or help to handle this exception without restarting the node is 
> highly appreciated.

If there is a connect timeout, it means that the server is not accepting 
connections in a timely fashion -- there is nothing that the client can do 
about this.

The SocketTimeoutException is reported to the HttpClient listeners, so the 
application code could be aware of the connect timeout.

This issue seems more an application/system problem, rather than something 
related to Jetty.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support from the Jetty & CometD 
experts.
_______________________________________________
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to