Hi, On Fri, May 28, 2021 at 5:23 PM Sai Sankar Challa via jetty-users <[email protected]> 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.access$201(ScheduledThreadPoolExecutor.java:180) > ~[?:1.8.0_232] > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > ~[?:1.8.0_232] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: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 [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
