Summary:
Fix test for AsyncSSLSocket. When a timeout
occurs during a handshake it's possible that
invokeConnectError is called with sslState_ ==
CONNECTING. This just removes the assertion in
this case. This doesnt affect prod code, only
tests
Reviewed By: yfeldblum
Differential Revision:
D4252677
fbshipit-source-id:
4db3a94ae28aa140546554c087bedcee7f06d201
connectionTimeout_.cancelTimeout();
AsyncSocket::invokeConnectErr(ex);
if (sslState_ == SSLStateEnum::STATE_CONNECTING) {
- assert(tfoAttempted_);
if (handshakeTimeout_.isScheduled()) {
handshakeTimeout_.cancelTimeout();
}