anchor.diff:    }
   
     bool _write(List<int> data, [bool copyBuffer = false]) {
  -    if (!_error) {
  +    if (!_error && !_closing) {
         return _socket.outputStream.write(data, copyBuffer);
       }
     }
   
     bool _writeFrom(List<int> buffer, [int offset, int len]) {
  -    if (!_error) {
  +    if (!_error && !_closing) {
         return _socket.outputStream.writeFrom(buffer, offset, len);
       }
     }
  
positive.code:     if (e == null) {
        // Indicate connection close to the HTTP parser.
        _httpParser.connectionClosed();
        _closing = true;
      }
    }
  
  
negative.code:   }
  
    void _onClosed() {
      _closing = true;
      _onConnectionClosed(null);
    }
  
  