Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F146200CB4 for ; Tue, 27 Jun 2017 23:40:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0DB59160BDC; Tue, 27 Jun 2017 21:40:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 55014160BD8 for ; Tue, 27 Jun 2017 23:40:43 +0200 (CEST) Received: (qmail 6696 invoked by uid 500); 27 Jun 2017 21:40:42 -0000 Mailing-List: contact notifications-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list notifications@asterixdb.apache.org Received: (qmail 6687 invoked by uid 99); 27 Jun 2017 21:40:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2017 21:40:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1316A1813D7 for ; Tue, 27 Jun 2017 21:40:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.127 X-Spam-Level: ** X-Spam-Status: No, score=2.127 tagged_above=-999 required=6.31 tests=[MISSING_HEADERS=1.207, SPF_FAIL=0.919, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id y2ZxQ1BlxpdZ for ; Tue, 27 Jun 2017 21:40:38 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B719D5FDF3 for ; Tue, 27 Jun 2017 21:40:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id 736D9240902; Tue, 27 Jun 2017 14:40:37 -0700 (PDT) Date: Tue, 27 Jun 2017 14:40:37 -0700 From: "Michael Blow (Code Review)" CC: Jenkins , abdullah alamoudi , Till Westmann Reply-To: mblow@apache.org X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: [ASTERIXDB-1955][CLUS][RT] Refactor, Keep-Alive X-Gerrit-Change-Id: Id75dd55861976390b1098a496ff2c0345c991389 X-Gerrit-ChangeURL: X-Gerrit-Commit: 1308eae519a613873c85ee6c16a0a6ce766ffb72 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 Message-Id: <20170627214037.736D9240902@unhygienix.ics.uci.edu> archived-at: Tue, 27 Jun 2017 21:40:44 -0000 Michael Blow has posted comments on this change. Change subject: [ASTERIXDB-1955][CLUS][RT] Refactor, Keep-Alive ...................................................................... Patch Set 4: (2 comments) https://asterix-gerrit.ics.uci.edu/#/c/1855/3/hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/ChunkedResponse.java File hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/ChunkedResponse.java: PS3, Line 124: if (response.status() != HttpResponseStatus.UNAUTHORIZED) { : // since the request failed, we need to close the channel on complete : future.addListener(ChannelFutureListener.CLOSE); : } > what if keepAlive = false and response status = unauthorized? Seems that this would be not any different than when response status = 200. https://asterix-gerrit.ics.uci.edu/#/c/1855/3/hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/FullResponse.java File hyracks-fullstack/hyracks/hyracks-http/src/main/java/org/apache/hyracks/http/server/FullResponse.java: PS3, Line 68: fullResponse.headers().remove(HttpHeaderNames.CONNECTION); > This is something we didn't do before (removing the header). just make sure We are not keeping alive (we are about to close the connection), so I think it is right, it may help eliminate EOFs and retries by the client since we prematurely close a Keep-Alive connection. It's not clear to me why we need to close on failure anyway- but that can be addressed in the future. -- To view, visit https://asterix-gerrit.ics.uci.edu/1855 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id75dd55861976390b1098a496ff2c0345c991389 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Michael Blow Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Till Westmann Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes