| Index: sdk/lib/io/http_impl.dart
|
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
|
| index 0af8979116183deba7c7cfab6b392d96d84b3148..19dda9753114bcb68e848777fccd7f9040b2644a 100644
|
| --- a/sdk/lib/io/http_impl.dart
|
| +++ b/sdk/lib/io/http_impl.dart
|
| @@ -1413,8 +1413,12 @@ class _HttpConnection extends _HttpConnectionBase {
|
| // If currently not processing any request close the socket when
|
| // we are done writing the response.
|
| if (_httpParser.isIdle) {
|
| + // If the httpParser is idle and we get an error from the
|
| + // connection we deal with that as a closed connection and not
|
| + // as an error. When the client disappears we get a connection
|
| + // reset by peer and that is OK.
|
| if (e != null) {
|
| - onError(e);
|
| + onClosed();
|
| } else {
|
| _socket.outputStream.onClosed = () {
|
| _destroy();
|
|
|