Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Issue 11316080: Change the HTTP close handling (Closed)

Created:
8 years, 1 month ago by Søren Gjesse
Modified:
8 years, 1 month ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Change the HTTP close handling Whenever the client closes its connection the server will follow and close as well. R=ager@google.com BUG=dart:4652 Committed: https://code.google.com/p/dart/source/detail?r=15135

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -18 lines) Patch
M sdk/lib/io/http_impl.dart View 4 chunks +16 lines, -18 lines 2 comments Download
M sdk/lib/io/http_parser.dart View 1 chunk +2 lines, -0 lines 2 comments Download
M tests/standalone/io/http_connection_close_test.dart View 2 chunks +33 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Søren Gjesse
8 years, 1 month ago (2012-11-19 15:37:26 UTC) #1
Mads Ager (google)
LGTM https://codereview.chromium.org/11316080/diff/1/sdk/lib/io/http_impl.dart File sdk/lib/io/http_impl.dart (right): https://codereview.chromium.org/11316080/diff/1/sdk/lib/io/http_impl.dart#newcode17 sdk/lib/io/http_impl.dart:17: if (!connection._isWriteClosed && !connection._isReadClosed) return; Maybe remove the ...
8 years, 1 month ago (2012-11-20 08:04:28 UTC) #2
Søren Gjesse
8 years, 1 month ago (2012-11-20 08:15:11 UTC) #3
https://codereview.chromium.org/11316080/diff/1/sdk/lib/io/http_impl.dart
File sdk/lib/io/http_impl.dart (right):

https://codereview.chromium.org/11316080/diff/1/sdk/lib/io/http_impl.dart#new...
sdk/lib/io/http_impl.dart:17: if (!connection._isWriteClosed &&
!connection._isReadClosed) return;
On 2012/11/20 08:04:28, Mads Ager wrote:
> Maybe remove the negations and make this:
> 
> if (connection._isWriteClosed || connection._isReadClose) {
>   // do stuff
> }

Much better, done.

https://codereview.chromium.org/11316080/diff/1/sdk/lib/io/http_parser.dart
File sdk/lib/io/http_parser.dart (right):

https://codereview.chromium.org/11316080/diff/1/sdk/lib/io/http_parser.dart#n...
sdk/lib/io/http_parser.dart:626: print("$_requestParser $e");
On 2012/11/20 08:04:28, Mads Ager wrote:
> Remove debug print.

Done.

https://codereview.chromium.org/11316080/diff/1/tests/standalone/io/http_conn...
File tests/standalone/io/http_connection_close_test.dart (right):

https://codereview.chromium.org/11316080/diff/1/tests/standalone/io/http_conn...
tests/standalone/io/http_connection_close_test.dart:68: //print(bytes);
On 2012/11/20 08:04:28, Mads Ager wrote:
> Remove?

Done.

Powered by Google App Engine
This is Rietveld 408576698