diff options
author | Ermal <eri@pfsense.org> | 2010-08-18 15:57:20 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-18 15:57:20 +0000 |
commit | b01406759249bee22fd81b0258338473df18601a (patch) | |
tree | 764edb0604df3c3e0cad38ffffcf16cb3ae55c5b /usr/local | |
parent | 71ca2cb2d4c2f573939db6801bef3db59d3b8b3c (diff) | |
download | pfsense-b01406759249bee22fd81b0258338473df18601a.zip pfsense-b01406759249bee22fd81b0258338473df18601a.tar.gz |
Ticket #826. Add more bandage to notice when a reading on socket timeouts.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/status_openvpn.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/status_openvpn.php b/usr/local/www/status_openvpn.php index 9240825..683db69 100644 --- a/usr/local/www/status_openvpn.php +++ b/usr/local/www/status_openvpn.php @@ -79,6 +79,11 @@ function kill_client($port, $remipp) { fputs($fp, "kill {$remipp}\n"); while (!feof($fp)) { $line = fgets($fp, 1024); + + $info = stream_get_meta_data($fp); + if ($info['timed_out']) + break; + /* parse header list line */ if (strpos($line, "INFO:")) continue; |