mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
HttpUtils.pm: next round of nonblocking start_SSL fixes (Forum #125939)
git-svn-id: https://svn.fhem.de/fhem/trunk@25624 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4b3755ef9a
commit
27d4232e22
@ -522,7 +522,7 @@ HttpUtils_Connect2NonblockingSSL($$)
|
||||
"$! ".($SSL_ERROR ? $SSL_ERROR : IO::Socket::SSL::errstr()));
|
||||
}
|
||||
|
||||
$hash->{hu_sslAdded} = 1;
|
||||
$hash->{hu_sslAdded} = $hash->{keepalive} ? 1 : 2;
|
||||
return HttpUtils_Connect2($hash); # Continue with HTML-Processing
|
||||
};
|
||||
|
||||
@ -591,6 +591,9 @@ HttpUtils_Connect2($)
|
||||
}
|
||||
}
|
||||
|
||||
delete($hash->{hu_sslAdded}) # Coming from HttpUtils_Connect2NonblockingSSL
|
||||
if($hash->{hu_sslAdded} && $hash->{hu_sslAdded} == 2);
|
||||
|
||||
if(!$hash->{conn}) {
|
||||
undef $hash->{conn};
|
||||
my $err = $@;
|
||||
|
Loading…
x
Reference in New Issue
Block a user