You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2009/09/29 14:20:57 UTC

svn commit: r819899 - /tomcat/trunk/java/org/apache/tomcat/util/net/SocketProperties.java

Author: jfclere
Date: Tue Sep 29 12:20:57 2009
New Revision: 819899

URL: http://svn.apache.org/viewvc?rev=819899&view=rev
Log:
timeout can't be negative...

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/SocketProperties.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/SocketProperties.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/SocketProperties.java?rev=819899&r1=819898&r2=819899&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/SocketProperties.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/SocketProperties.java Tue Sep 29 12:20:57 2009
@@ -203,7 +203,7 @@
         if (soLingerOn != null && soLingerTime != null)
             socket.setSoLinger(soLingerOn.booleanValue(),
                     soLingerTime.intValue());
-        if (soTimeout != null)
+        if (soTimeout != null && soTimeout.intValue() >= 0)
             socket.setSoTimeout(soTimeout.intValue());
         if (tcpNoDelay != null)
             socket.setTcpNoDelay(tcpNoDelay.booleanValue());
@@ -222,7 +222,7 @@
                     performanceBandwidth.intValue());
         if (soReuseAddress != null)
             socket.setReuseAddress(soReuseAddress.booleanValue());
-        if (soTimeout != null)
+        if (soTimeout != null && soTimeout.intValue() >= 0)
             socket.setSoTimeout(soTimeout.intValue());
     }
 
@@ -422,4 +422,4 @@
     
     
 
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org