tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r535877 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioSender.java
Date Mon, 07 May 2007 13:44:14 GMT
Author: fhanik
Date: Mon May  7 06:44:13 2007
New Revision: 535877

URL: http://svn.apache.org/viewvc?view=rev&rev=535877
Log:
Set correct soLinger time

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioSender.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioSender.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioSender.java?view=diff&rev=535877&r1=535876&r2=535877
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioSender.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioSender.java Mon
May  7 06:44:13 2007
@@ -138,7 +138,7 @@
         socketChannel.socket().setSendBufferSize(getTxBufSize());
         socketChannel.socket().setReceiveBufferSize(getRxBufSize());
         socketChannel.socket().setSoTimeout((int)getTimeout());
-        socketChannel.socket().setSoLinger(getSoLingerOn(),0);
+        socketChannel.socket().setSoLinger(getSoLingerOn(),getSoLingerOn()?getSoLingerTime():0);
         socketChannel.socket().setTcpNoDelay(getTcpNoDelay());
         socketChannel.socket().setKeepAlive(getSoKeepAlive());
         socketChannel.socket().setReuseAddress(getSoReuseAddress());



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


Mime
View raw message