Stopped retry when fatal error happened in secure socket #4553
This commit is contained in:
parent
423d698436
commit
018480412a
|
@ -297,7 +297,6 @@ SecureSocket::secureConnect(int socket)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LOG((CLOG_ERR "failed to verify server certificate fingerprint"));
|
LOG((CLOG_ERR "failed to verify server certificate fingerprint"));
|
||||||
sendEvent(getEvents()->forISocket().stopRetry());
|
|
||||||
disconnect();
|
disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -435,6 +434,7 @@ SecureSocket::getError()
|
||||||
void
|
void
|
||||||
SecureSocket::disconnect()
|
SecureSocket::disconnect()
|
||||||
{
|
{
|
||||||
|
sendEvent(getEvents()->forISocket().stopRetry());
|
||||||
sendEvent(getEvents()->forISocket().disconnected());
|
sendEvent(getEvents()->forISocket().disconnected());
|
||||||
sendEvent(getEvents()->forIStream().inputShutdown());
|
sendEvent(getEvents()->forIStream().inputShutdown());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue