mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
parent
883170a806
commit
f3d55848f5
@ -235,14 +235,18 @@ void TlsStream::Close(void)
|
|||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
int rc, err;
|
int rc, err;
|
||||||
|
|
||||||
do {
|
{
|
||||||
|
boost::mutex::scoped_lock lock(m_SSLLock);
|
||||||
rc = SSL_shutdown(m_SSL.get());
|
rc = SSL_shutdown(m_SSL.get());
|
||||||
} while (rc == 0);
|
|
||||||
|
|
||||||
if (rc > 0)
|
if (rc == 0)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
err = SSL_get_error(m_SSL.get(), rc);
|
if (rc > 0)
|
||||||
|
break;
|
||||||
|
|
||||||
|
err = SSL_get_error(m_SSL.get(), rc);
|
||||||
|
}
|
||||||
|
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case SSL_ERROR_WANT_READ:
|
case SSL_ERROR_WANT_READ:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user