Remove unnecessary code
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 5 Sep 2011 10:47:43 +0000 (10:47 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 5 Sep 2011 10:47:43 +0000 (10:47 +0000)
Timeout is set when socket is created and further changes are handled inside the while loop

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1165234 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11Processor.java

index cb6755a..b1acb0c 100644 (file)
@@ -152,14 +152,6 @@ public class Http11Processor extends AbstractHttp11Processor<Socket> {
             socketWrapper.setKeepAliveLeft(0);
         }
 
-        try {
-            socket.getSocket().setSoTimeout(soTimeout);
-        } catch (Throwable t) {
-            ExceptionUtils.handleThrowable(t);
-            log.debug(sm.getString("http11processor.socket.timeout"), t);
-            error = true;
-        }
-
         boolean keptAlive = socketWrapper.isKeptAlive();
 
         while (!error && keepAlive && !endpoint.isPaused()) {