Closed jgrahamc closed 9 years ago
LGTM
Shouldn't we also add logging for the other do_ssl_handshake()
call?
Uh. Yes, we should. I thought it was being logged but alas the error is just being cleared and the connection terminated. I will update this pull request.
Updated.
Looks good, feel free to merge it.
Previously, the first call to do_ssl_handshake was assume to 'work' (i.e. return WANT_READ or WANT_WRITE) and the error code was not checked. Added checking of the error code and if it is not retriable then drop the connection and log the error.