2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

DevIo.pm: add hash->{sslargs} (Forum #109910)

git-svn-id: https://svn.fhem.de/fhem/trunk@22117 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-06-04 21:49:55 +00:00
parent 84ccde7d53
commit 29e8500ba6

View File

@ -466,8 +466,6 @@ DevIo_OpenDev($$$;$)
return &$doCb('websocket is only supported with callback') if(!$callback);
}
$path = "/" if(!defined($path) || $path eq "");
Log 1, "P:>$path<";
# This part is called every time the timeout (5sec) is expired _OR_
# somebody is communicating over another TCP connection. As the connect
@ -480,7 +478,6 @@ Log 1, "P:>$path<";
delete($readyfnlist{"$name.$dev"});
my $timeout = $hash->{TIMEOUT} ? $hash->{TIMEOUT} : 3;
# Do common TCP/IP "afterwork":
# if connected: set keepalive, fill selectlist, FD, TCPDev.
# if not: report the error and schedule reconnect
@ -531,6 +528,7 @@ Log 1, "P:>$path<";
keepalive=>$proto eq "ws:" ? 1 : 0,
httpversion=>$proto eq "ws:" ? "1.1" : "1.0",
header => \%header,
sslargs => $hash->{sslargs},
callback=> sub() {
my ($h, $err, undef) = @_;
$err = "HTTP CODE $h->{code}"