Index: src/SSLSocket.m ================================================================== --- src/SSLSocket.m +++ src/SSLSocket.m @@ -243,11 +243,11 @@ #endif @throw e; } - if (SSL_write(ssl, buffer, (int)length) < 1) + if (SSL_write(ssl, buffer, (int)length) < length) @throw [OFWriteFailedException newWithClass: isa stream: self requestedLength: length]; }