hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1589359 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java
Date Wed, 23 Apr 2014 09:41:12 GMT
Author: olegk
Date: Wed Apr 23 09:41:11 2014
New Revision: 1589359

URL: http://svn.apache.org/r1589359
Log:
HTTPCLIENT-1497: Allow zero SO_LINGER (immediate abortive close)
Contributed by Dmitry Potapov <potapov.d at gmail.com>

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java?rev=1589359&r1=1589358&r2=1589359&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.java
Wed Apr 23 09:41:11 2014
@@ -129,7 +129,7 @@ public class DefaultHttpClientConnection
                 sock.setKeepAlive(socketConfig.isSoKeepAlive());
                 final int linger = socketConfig.getSoLinger();
                 if (linger >= 0) {
-                    sock.setSoLinger(linger > 0, linger);
+                    sock.setSoLinger(true, linger);
                 }
                 conn.bind(sock);
                 if (this.log.isDebugEnabled()) {



Mime
View raw message