From 79dd3c70db460696e0e5ab526f5125e964a3a530 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Wed, 21 Apr 2010 12:16:06 +0000 Subject: [PATCH] debug git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1541 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../java/org/eclipse/jetty/client/HttpExchange.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java index 20b880fa2de..36e9c8ea23b 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java @@ -15,6 +15,7 @@ package org.eclipse.jetty.client; import java.io.IOException; import java.io.InputStream; +import java.net.SocketTimeoutException; import java.util.concurrent.atomic.AtomicInteger; import org.eclipse.jetty.client.security.SecurityListener; @@ -822,7 +823,14 @@ public class HttpExchange { try { - HttpExchange.this.onException(ex); + if (ex instanceof SocketTimeoutException || + ex.getCause() instanceof SocketTimeoutException) + { + Log.debug(ex); + HttpExchange.this.onExpire(); + } + else + HttpExchange.this.onException(ex); } finally {