From ca47c548429ace1724ec3bc9273ab7c8790a1c1a Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 20 Mar 2014 09:20:15 +0000 Subject: [PATCH] FHEMWEB: closeConn attribute for forum issue #20294 git-svn-id: https://svn.fhem.de/fhem/trunk@5259 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index febc3b22a..7ed582499 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -125,6 +125,7 @@ FHEMWEB_Initialize($) allowfrom basicAuth basicAuthMsg + closeConn:1,0 column defaultRoom endPlotNow:1,0 @@ -383,6 +384,13 @@ FW_Read($) $expires, $compressed, $FW_headercors, "Content-Type: $FW_RETTYPE\r\n\r\n", $FW_RET; + + # Needed for slow server+iPad/iPhone. Forum #20294 + if(AttrVal($FW_wname, "closeConn", undef)) { + TcpServer_Close($hash); + delete($defs{$hash->{NAME}}); + } + exit if(defined($pid)); } @@ -2905,6 +2913,14 @@ FW_ActivateInform() Note: some elements like SVG plots and readingsGroup can only be part of a column if they are part of a group. + + +