asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mb...@apache.org
Subject asterixdb git commit: Disable Connection Keep-Alive from Client Helper
Date Thu, 30 Mar 2017 20:34:23 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 4bee79bb1 -> 309ef98b8


Disable Connection Keep-Alive from Client Helper

On windows, client helper connections are terminated in a matter which
yields ugly exceptions on the server (java.io.IOException: An existing
connection was forcibly closed by the remote host).

Disabling keep-alive on the client helper connections elminates the
exceptions

Change-Id: I45aeed8a77a1853e2c54a6fff47d941da5ad8413
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1639
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/309ef98b
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/309ef98b
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/309ef98b

Branch: refs/heads/master
Commit: 309ef98b87ef815be1e2a7a7b26df3d403965afe
Parents: 4bee79b
Author: Michael Blow <mblow@apache.org>
Authored: Thu Mar 30 15:19:54 2017 -0400
Committer: Michael Blow <mblow@apache.org>
Committed: Thu Mar 30 13:34:01 2017 -0700

----------------------------------------------------------------------
 .../org/apache/asterix/clienthelper/commands/RemoteCommand.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/309ef98b/asterixdb/asterix-client-helper/src/main/java/org/apache/asterix/clienthelper/commands/RemoteCommand.java
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-client-helper/src/main/java/org/apache/asterix/clienthelper/commands/RemoteCommand.java
b/asterixdb/asterix-client-helper/src/main/java/org/apache/asterix/clienthelper/commands/RemoteCommand.java
index e7b6be3..6a16761 100644
--- a/asterixdb/asterix-client-helper/src/main/java/org/apache/asterix/clienthelper/commands/RemoteCommand.java
+++ b/asterixdb/asterix-client-helper/src/main/java/org/apache/asterix/clienthelper/commands/RemoteCommand.java
@@ -73,6 +73,7 @@ public abstract class RemoteCommand extends ClientCommand {
         conn.setConnectTimeout(timeoutMillis);
         conn.setReadTimeout(timeoutMillis);
         conn.setRequestMethod(method.name());
+        conn.setRequestProperty("Connection", "close");
         return conn;
     }
 }


Mime
View raw message