mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
HttpUtils: ignore noshutdown for https
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5580 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4c0d9fe76d
commit
d0b8cc8c0f
@ -200,8 +200,11 @@ HttpUtils_Connect2($)
|
|||||||
$hdr .= "\r\n";
|
$hdr .= "\r\n";
|
||||||
syswrite $hash->{conn}, $hdr;
|
syswrite $hash->{conn}, $hdr;
|
||||||
syswrite $hash->{conn}, $data if(defined($data));
|
syswrite $hash->{conn}, $data if(defined($data));
|
||||||
shutdown $hash->{conn}, 1 if($hash->{shutdown} ||
|
|
||||||
(defined($hash->{noshutdown}) && $hash->{noshutdown} == 0));
|
my $s = $hash->{shutdown};
|
||||||
|
$s =(defined($hash->{noshutdown}) && $hash->{noshutdown}==0) if(!defined($s));
|
||||||
|
$s = 0 if($hash->{protocol} eq "https");
|
||||||
|
shutdown($hash->{conn}, 1) if($s);
|
||||||
|
|
||||||
if($hash->{callback}) { # Nonblocking read
|
if($hash->{callback}) { # Nonblocking read
|
||||||
$hash->{FD} = $hash->{conn}->fileno();
|
$hash->{FD} = $hash->{conn}->fileno();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user