removed unnecessary flag settings, fixed wrong call. #4750
This commit is contained in:
parent
f10f0f13c4
commit
55a38ff8cc
|
@ -420,7 +420,6 @@ SecureSocket::checkResult(int status, int& retry)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SSL_ERROR_WANT_READ:
|
case SSL_ERROR_WANT_READ:
|
||||||
m_readable = true;
|
|
||||||
retry++;
|
retry++;
|
||||||
LOG((CLOG_DEBUG2 "want to read, error=%d, attempt=%d", errorCode, retry));
|
LOG((CLOG_DEBUG2 "want to read, error=%d, attempt=%d", errorCode, retry));
|
||||||
break;
|
break;
|
||||||
|
@ -432,15 +431,11 @@ SecureSocket::checkResult(int status, int& retry)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SSL_ERROR_WANT_CONNECT:
|
case SSL_ERROR_WANT_CONNECT:
|
||||||
m_writable = true;
|
|
||||||
m_readable = true;
|
|
||||||
retry++;
|
retry++;
|
||||||
LOG((CLOG_DEBUG2 "want to connect, error=%d, attempt=%d", errorCode, retry));
|
LOG((CLOG_DEBUG2 "want to connect, error=%d, attempt=%d", errorCode, retry));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SSL_ERROR_WANT_ACCEPT:
|
case SSL_ERROR_WANT_ACCEPT:
|
||||||
m_writable = true;
|
|
||||||
m_readable = true;
|
|
||||||
retry++;
|
retry++;
|
||||||
LOG((CLOG_DEBUG2 "want to accept, error=%d, attempt=%d", errorCode, retry));
|
LOG((CLOG_DEBUG2 "want to accept, error=%d, attempt=%d", errorCode, retry));
|
||||||
break;
|
break;
|
||||||
|
@ -646,7 +641,7 @@ SecureSocket::serviceAccept(ISocketMultiplexerJob* job,
|
||||||
|
|
||||||
// Retry case
|
// Retry case
|
||||||
return new TSocketMultiplexerMethodJob<SecureSocket>(
|
return new TSocketMultiplexerMethodJob<SecureSocket>(
|
||||||
this, &SecureSocket::serviceConnect,
|
this, &SecureSocket::serviceAccept,
|
||||||
getSocket(), isReadable(), isWritable());
|
getSocket(), isReadable(), isWritable());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue