mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fix(NetSSL): handle EWOULDBLOCK when calling SSL_shutdown()
This commit is contained in:
parent
34852d1c62
commit
bc6ca8603e
@ -264,7 +264,13 @@ int SecureSocketImpl::shutdown()
|
|||||||
if (!shutdownSent)
|
if (!shutdownSent)
|
||||||
{
|
{
|
||||||
int rc = ::SSL_shutdown(_pSSL);
|
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();
|
l.unlock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user