From 9de29945a10cf205c1907c29aa38b395f6c3c6b5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 04 Jan 2012 09:18:57 -0500
Subject: [PATCH] - Improved http monitor function. - Added ispconfigend user and group when user to webid connection is activated.

---
 server/lib/classes/monitor_tools.inc.php |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php
index f120bcb..d6cd3a5 100644
--- a/server/lib/classes/monitor_tools.inc.php
+++ b/server/lib/classes/monitor_tools.inc.php
@@ -1719,7 +1719,11 @@
 				 * So we can do a deepter test and try to get data over this connection.
 				 * (if apache hangs, we get a connection but a timeout by trying to GET the data!)
 				 */
-				fwrite($fp, "GET / HTTP/1.0\r\n\r\n");
+				// fwrite($fp, "GET / HTTP/1.0\r\n\r\n");
+				$out = "GET / HTTP/1.1\r\n";
+				$out .= "Host: localhost\r\n";
+				$out .= "Connection: Close\r\n\r\n";
+				fwrite($fp, $out);
 				stream_set_timeout($fp, 5); // Timeout after 5 seconds
 				$res = fread($fp, 10);  // try to get 10 bytes (enough to test!)
 				$info = stream_get_meta_data($fp);

--
Gitblit v1.9.1