Index: src/SSLSocket.m ================================================================== --- src/SSLSocket.m +++ src/SSLSocket.m @@ -356,12 +356,12 @@ _atEndOfStream = true; return ret; } -- (void)lowlevelWriteBuffer: (const void *)buffer - length: (size_t)length +- (size_t)lowlevelWriteBuffer: (const void *)buffer + length: (size_t)length { int bytesWritten; if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; @@ -373,15 +373,11 @@ @throw [OFWriteFailedException exceptionWithObject: self requestedLength: length bytesWritten: 0 errNo: 0]; - if ((size_t)bytesWritten != length) - @throw [OFWriteFailedException exceptionWithObject: self - requestedLength: length - bytesWritten: bytesWritten - errNo: 0]; + return bytesWritten; } - (bool)hasDataInReadBuffer { if (_SSL != NULL && SSL_pending(_SSL) > 0)