|
Generate an error for active connections when the HTTP client is shutdown
Before the underlying sockets where just silently closed causing no more IO events on active connections no matter what state they where in.
Also added an optional "force" argument to HttpClient.shutdown. If that is false (the default) The HttpClient will not close active connections until they are done. This causes all pkg/http and pub tests to pass.
R=ager@google.com, nweiz@google.com
BUG=dart:6594
Committed: https://code.google.com/p/dart/source/detail?r=15275
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+151 lines, -106 lines) |
Patch |
|
M |
pkg/http/test/request_test.dart
|
View
|
1
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
pkg/pkg.status
|
View
|
1
2
3
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/http.dart
|
View
|
1
2
3
|
1 chunk |
+5 lines, -2 lines |
3 comments
|
Download
|
|
M |
sdk/lib/io/http_impl.dart
|
View
|
1
2
3
|
9 chunks |
+30 lines, -23 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/http_parser.dart
|
View
|
1
2
3
|
4 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_advanced_test.dart
|
View
|
1
|
5 chunks |
+37 lines, -22 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_auth_test.dart
|
View
|
1
|
4 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_connection_close_test.dart
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_connection_header_test.dart
|
View
|
1
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_content_length_test.dart
|
View
|
1
|
2 chunks |
+14 lines, -8 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_redirect_test.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_server_early_client_close_test.dart
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_server_handler_test.dart
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_session_test.dart
|
View
|
1
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/http_shutdown_test.dart
|
View
|
1
2
3
|
5 chunks |
+26 lines, -16 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|