Use -[pendingBytes] of the superclass if we have no SSL context.
This happens if we are a listening socket.
This commit is contained in:
parent
6ed58f5e6e
commit
af7fcc1aa4
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ static SSL_CTX *ctx;
|
|||
|
||||
- (size_t)pendingBytes
|
||||
{
|
||||
if (ssl == NULL)
|
||||
return [super pendingBytes];
|
||||
|
||||
return [super pendingBytes] + SSL_pending(ssl);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue