From d0b8cc8c0fbd8b5df3ecfaf29f5530a87b25e2bc Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 20 Apr 2014 08:38:43 +0000 Subject: [PATCH] HttpUtils: ignore noshutdown for https git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5580 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/HttpUtils.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/FHEM/HttpUtils.pm b/FHEM/HttpUtils.pm index 31c0eda6c..d720bffde 100644 --- a/FHEM/HttpUtils.pm +++ b/FHEM/HttpUtils.pm @@ -200,8 +200,11 @@ HttpUtils_Connect2($) $hdr .= "\r\n"; syswrite $hash->{conn}, $hdr; 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 $hash->{FD} = $hash->{conn}->fileno();