]> granicus.if.org Git - libevent/commit
Do not try to do SSL handshake if the connect() fails
authorAzat Khuzhin <azat@libevent.org>
Wed, 4 Nov 2020 21:57:39 +0000 (00:57 +0300)
committerAzat Khuzhin <azat@libevent.org>
Wed, 4 Nov 2020 21:57:39 +0000 (00:57 +0300)
commit59e31c9667075ae960d59e0f78d8d9c6eb01765f
tree91b80cf9352ef1a8ca096b3c1c65855f180126c9
parent4f8a6320caa651a1e73ffae8c6dd933e705d68c7
Do not try to do SSL handshake if the connect() fails

This will avoid this icky error:

    $ https-client -4 -url https://127.1
    some request failed - no idea which one though!
    error:00000005:lib(0):func(0):DH lib

And instead will report only:

    $ https-client -4 -url https://127.1
    some request failed - no idea which one though!
    socket error = Connection refused (111)

Refs: #1115
bufferevent_ssl.c
util-internal.h