abdullah alamoudi has posted comments on this change.

Change subject: [ASTERIXDB-1955][CLUS][RT] Refactor, Keep-Alive
......................................................................


Patch Set 3: Code-Review+2

(2 comments)

Looks good overall. just look at my comments and make sure everything is ok.
Please, also create an issue to add tests for unauthorized and keepAlive header 
scenarios...

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?
Someone else will close the connection outside?


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 
this is the correct behavior...


-- 
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: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Blow <mb...@apache.org>
Gerrit-Reviewer: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Till Westmann <ti...@apache.org>
Gerrit-Reviewer: abdullah alamoudi <bamou...@gmail.com>
Gerrit-HasComments: Yes

Reply via email to