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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 11623004: Fixes to eventhandler and HTTP (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket.cc ('k') | sdk/lib/io/socket_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index ef3aeb4e064c1e8759cb475b12e79c90a29ba7a1..4a1f44755e08aabacf0a07ef7675168d99d3fceb 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -32,7 +32,7 @@ class _CloseQueue {
connection._state |= _HttpConnectionBase.CLOSING;
_q.add(connection);
- // If output stream is not closed for writing close it now and
+ // If the output stream is not closed for writing, close it now and
// wait for callback when closed.
if (!connection._isWriteClosed) {
connection._socket.outputStream.close();
@@ -938,6 +938,7 @@ class _HttpConnection extends _HttpConnectionBase {
_request = null;
_response = null;
if (close) {
+ _httpParser.cancel();
_server._closeQueue.add(this);
} else {
_state = _HttpConnectionBase.IDLE;
@@ -949,7 +950,7 @@ class _HttpConnection extends _HttpConnectionBase {
// not care to read the request body) this is send.
assert(!_isRequestDone);
_writeBufferedResponse();
- _close();
+ _httpParser.cancel();
_server._closeQueue.add(this);
}
}
« no previous file with comments | « runtime/bin/socket.cc ('k') | sdk/lib/io/socket_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698