mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-06 18:28:44 +00:00
FHEMWEB: closeConn attribute for forum issue #20294
git-svn-id: https://svn.fhem.de/fhem/trunk@5259 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
661f311501
commit
ca47c54842
@ -125,6 +125,7 @@ FHEMWEB_Initialize($)
|
|||||||
allowfrom
|
allowfrom
|
||||||
basicAuth
|
basicAuth
|
||||||
basicAuthMsg
|
basicAuthMsg
|
||||||
|
closeConn:1,0
|
||||||
column
|
column
|
||||||
defaultRoom
|
defaultRoom
|
||||||
endPlotNow:1,0
|
endPlotNow:1,0
|
||||||
@ -383,6 +384,13 @@ FW_Read($)
|
|||||||
$expires, $compressed, $FW_headercors,
|
$expires, $compressed, $FW_headercors,
|
||||||
"Content-Type: $FW_RETTYPE\r\n\r\n",
|
"Content-Type: $FW_RETTYPE\r\n\r\n",
|
||||||
$FW_RET;
|
$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));
|
exit if(defined($pid));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2905,6 +2913,14 @@ FW_ActivateInform()
|
|||||||
Note: some elements like SVG plots and readingsGroup can only be part of
|
Note: some elements like SVG plots and readingsGroup can only be part of
|
||||||
a column if they are part of a <a href="#group">group</a>.
|
a column if they are part of a <a href="#group">group</a>.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<a name="closeConn"></a>
|
||||||
|
<li>closeConn<br>
|
||||||
|
If set, a TCP Connection will only serve one HTTP request. Seems to
|
||||||
|
solve problems for certain hardware combinations like slow
|
||||||
|
FHEM-Server, and iPad/iPhone as Web-client.
|
||||||
|
</li><br>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -3401,6 +3417,14 @@ FW_ActivateInform()
|
|||||||
stehen.
|
stehen.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
|
<a name="closeConn"></a>
|
||||||
|
<li>closeConn<br>
|
||||||
|
Falls gesetzt, wird pro TCP Verbindung nur ein HTTP Request
|
||||||
|
durchgefuehrt. Fuer bestimmte Hardware-Kombinationen (langsamer FHEM
|
||||||
|
Server, iPad/iPhone als Client) scheint dieses Attribu Ladeprobleme zu
|
||||||
|
beheben.
|
||||||
|
</li><br>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user