2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +00:00

01_FHEMWEB.pm: avoid closeConn if the writebuffer is not empty (Forum #88470)

git-svn-id: https://svn.fhem.de/fhem/trunk@19335 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-05-05 18:05:33 +00:00
parent 00d0b9bc53
commit 8f6d19e844

View File

@ -737,7 +737,8 @@ sub
FW_closeConn($) FW_closeConn($)
{ {
my ($hash) = @_; my ($hash) = @_;
if(!$hash->{inform} && !$hash->{BUF}) { # Forum #41125 # Forum #41125, 88470
if(!$hash->{inform} && !$hash->{BUF} && !defined($hash->{".WRITEBUFFER"})) {
my $cc = AttrVal($hash->{SNAME}, "closeConn", my $cc = AttrVal($hash->{SNAME}, "closeConn",
$FW_userAgent =~ m/(iPhone|iPad|iPod)/); $FW_userAgent =~ m/(iPhone|iPad|iPod)/);
if(!$FW_httpheader{Connection} || $cc) { if(!$FW_httpheader{Connection} || $cc) {