Index: src/OFHTTPClient.m ================================================================== --- src/OFHTTPClient.m +++ src/OFHTTPClient.m @@ -822,10 +822,12 @@ if (_closed) return; if (_written < _contentLength) @throw [OFTruncatedDataException exception]; + + _closed = true; [_socket asyncReadLineWithTarget: _handler selector: @selector(socket:didReadLine:context: exception:) context: nil];