mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
fix(NetSSL): handle EWOULDBLOCK when calling SSL_shutdown()
This commit is contained in:
parent
28a08434c6
commit
0eb2e1b3b3
@ -264,7 +264,13 @@ int SecureSocketImpl::shutdown()
|
||||
if (!shutdownSent)
|
||||
{
|
||||
int rc = ::SSL_shutdown(_pSSL);
|
||||
if (rc < 0) rc = handleError(rc);
|
||||
if (rc < 0)
|
||||
{
|
||||
if (SocketImpl::lastError() == POCO_EWOULDBLOCK)
|
||||
rc = SecureStreamSocket::ERR_SSL_WANT_WRITE;
|
||||
else
|
||||
rc = handleError(rc);
|
||||
}
|
||||
|
||||
l.unlock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user