hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1789824 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/HttpRequestExecutor.java
Date Sat, 01 Apr 2017 17:11:38 GMT
Author: olegk
Date: Sat Apr  1 17:11:38 2017
New Revision: 1789824

URL: http://svn.apache.org/viewvc?rev=1789824&view=rev
Log:
Discard client connections rendered invalid due to an error during expect-continue handshake

Modified:
    httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/HttpRequestExecutor.java

Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/HttpRequestExecutor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/HttpRequestExecutor.java?rev=1789824&r1=1789823&r2=1789824&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/HttpRequestExecutor.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/HttpRequestExecutor.java
Sat Apr  1 17:11:38 2017
@@ -279,7 +279,7 @@ public class HttpRequestExecutor {
         Args.notNull(request, "HTTP request");
         Args.notNull(response, "HTTP response");
         Args.notNull(context, "HTTP context");
-        final boolean keepAlive = connReuseStrategy.keepAlive(request, response, context);
+        final boolean keepAlive = connection.isConsistent() && connReuseStrategy.keepAlive(request,
response, context);
         if (streamListener != null) {
             streamListener.onExchangeComplete(connection, keepAlive);
         }



Mime
View raw message