From 798621e259b5f44df3bc77a5110b05c4e2ee9de2 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 7 Mar 2018 21:30:37 +0000 Subject: [PATCH] FHEM/01_FHEMWEB.pm: some asyncoutput debugging for #85358 git-svn-id: https://svn.fhem.de/fhem/trunk@16350 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 4a94da40b..71688ed75 100644 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -374,6 +374,7 @@ FW_Read($$) # substr( $data, $i, 1, substr( $data, $i, 1, ) ^ substr($mask, $i% , 1) ); #} #Log 1, "Received via websocket: ".unpack("H*",$data); + $hash->{BUF} = ""; return; } @@ -678,7 +679,11 @@ FW_AsyncOutput($$) # find the longpoll connection with the same fw_id as the page that was the # origin of the get command my $fwid = $hash->{FW_ID}; - return if(!$fwid); + if(!$fwid) { + Log3 $hash->{SNAME}, 4, "AsyncOutput from $hash->{NAME} without FW_ID"; + return; + } + Log3 $hash->{SNAME}, 4, "AsyncOutput from $hash->{NAME}"; $hash = $FW_id2inform{$fwid}; if($hash) { FW_addToWritebuffer($hash, $data."\n");