hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r226630 - /jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/HttpProcessor.java
Date Sun, 31 Jul 2005 11:37:22 GMT
Author: olegk
Date: Sun Jul 31 04:37:19 2005
New Revision: 226630

URL: http://svn.apache.org/viewcvs?rev=226630&view=rev
Log:
Silently ignore socket timeout exceptions. They are perfectly normal

Modified:
    jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/HttpProcessor.java

Modified: jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/HttpProcessor.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/HttpProcessor.java?rev=226630&r1=226629&r2=226630&view=diff
==============================================================================
--- jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/HttpProcessor.java
(original)
+++ jakarta/httpclient/trunk/coyote-httpconnector/src/java/org/apache/http/coyote/HttpProcessor.java
Sun Jul 31 04:37:19 2005
@@ -30,6 +30,7 @@
 package org.apache.http.coyote;
 
 import java.io.IOException;
+import java.net.SocketTimeoutException;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -94,6 +95,9 @@
             while (this.conn.isOpen() && !Thread.interrupted()) {
                 try {
                     process();
+                } catch (SocketTimeoutException ex) {
+                    LOG.debug("Socket timeout");
+                    break;
                 } catch (IOException ex) {
                     LOG.warn("I/O error processing HTTP request", ex);
                     break;



Mime
View raw message