Michael Blow has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/1639

Change subject: Disable Connection Keep-Alive from Client Helper
......................................................................

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
---
M 
asterixdb/asterix-client-helper/src/main/java/org/apache/asterix/clienthelper/commands/RemoteCommand.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb 
refs/changes/39/1639/1

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 @@
         conn.setConnectTimeout(timeoutMillis);
         conn.setReadTimeout(timeoutMillis);
         conn.setRequestMethod(method.name());
+        conn.setRequestProperty("Connection", "close");
         return conn;
     }
 }

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1639
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I45aeed8a77a1853e2c54a6fff47d941da5ad8413
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Blow <[email protected]>

Reply via email to