Work-around for proxy->s_server retry logic

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Viktor Dukhovni 2016-02-20 18:17:28 -05:00
parent 834aae2a99
commit dca97e9bfd

View file

@ -269,7 +269,9 @@ sub clientstart
);
$retry--;
if (!$server_sock) {
if ($@ || !defined($server_sock)) {
$server_sock->close() if defined($server_sock);
undef $server_sock;
if ($retry) {
#Sleep for a short while
select(undef, undef, undef, 0.1);