| Index: sdk/lib/io/http_impl.dart
|
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
|
| index aac009359ecfbb693175a7a4370858f0bba53343..841a614674acb88976deca0d2a23e3db31570748 100644
|
| --- a/sdk/lib/io/http_impl.dart
|
| +++ b/sdk/lib/io/http_impl.dart
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| @@ -500,9 +500,6 @@ class _HttpResponse extends _HttpRequestResponseBase implements HttpResponse {
|
| _writeDone();
|
| // Indicate to the connection that the response handling is done.
|
| _httpConnection._responseClosed();
|
| - if (_streamClosedHandler != null) {
|
| - new Timer(0, (_) => _streamClosedHandler());
|
| - }
|
| }
|
|
|
| void _streamSetNoPendingWriteHandler(callback()) {
|
| @@ -511,8 +508,8 @@ class _HttpResponse extends _HttpRequestResponseBase implements HttpResponse {
|
| }
|
| }
|
|
|
| - void _streamSetClosedHandler(callback()) {
|
| - _streamClosedHandler = callback;
|
| + void _streamSetCloseHandler(callback()) {
|
| + // TODO(sgjesse): Handle this.
|
| }
|
|
|
| void _streamSetErrorHandler(callback(e)) {
|
| @@ -624,7 +621,6 @@ class _HttpResponse extends _HttpRequestResponseBase implements HttpResponse {
|
| int _statusCode; // Response status code.
|
| String _reasonPhrase; // Response reason phrase.
|
| _HttpOutputStream _outputStream;
|
| - Function _streamClosedHandler;
|
| Function _streamErrorHandler;
|
| }
|
|
|
| @@ -703,7 +699,7 @@ class _HttpOutputStream extends _BaseOutputStream implements OutputStream {
|
| }
|
|
|
| void set onClosed(void callback()) {
|
| - _requestOrResponse._streamSetClosedHandler(callback);
|
| + _requestOrResponse._streamSetCloseHandler(callback);
|
| }
|
|
|
| void set onError(void callback(e)) {
|
| @@ -1203,9 +1199,6 @@ class _HttpClientRequest
|
| // Ensure that any trailing data is written.
|
| _writeDone();
|
| _connection._requestClosed();
|
| - if (_streamClosedHandler != null) {
|
| - new Timer(0, (_) => _streamClosedHandler());
|
| - }
|
| }
|
|
|
| void _streamSetNoPendingWriteHandler(callback()) {
|
| @@ -1214,8 +1207,8 @@ class _HttpClientRequest
|
| }
|
| }
|
|
|
| - void _streamSetClosedHandler(callback()) {
|
| - _streamClosedHandler = callback;
|
| + void _streamSetCloseHandler(callback()) {
|
| + // TODO(sgjesse): Handle this.
|
| }
|
|
|
| void _streamSetErrorHandler(callback(e)) {
|
| @@ -1272,7 +1265,6 @@ class _HttpClientRequest
|
| Uri _uri;
|
| _HttpClientConnection _connection;
|
| _HttpOutputStream _outputStream;
|
| - Function _streamClosedHandler;
|
| Function _streamErrorHandler;
|
| bool _emptyBody = true;
|
| }
|
|
|