From 00240df580c59b9a54dafafcbf5524d266f1616e Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Wed, 6 Mar 2013 00:08:28 +0100 Subject: haproxy-devel, -allow shared frontend with SSL offloading -error checking+reporting to user while applying configuration. --- config/haproxy-devel/haproxy_pool_edit.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'config/haproxy-devel/haproxy_pool_edit.php') diff --git a/config/haproxy-devel/haproxy_pool_edit.php b/config/haproxy-devel/haproxy_pool_edit.php index fa46efb2..09474f02 100644 --- a/config/haproxy-devel/haproxy_pool_edit.php +++ b/config/haproxy-devel/haproxy_pool_edit.php @@ -88,13 +88,13 @@ if ($_POST) { if (preg_match("/[^a-zA-Z0-9\.\-_]/", $_POST['name'])) $input_errors[] = "The field 'Name' contains invalid characters."; - if (!is_numeric($_POST['connection_timeout'])) + if ($_POST['connection_timeout'] !== "" && !is_numeric($_POST['connection_timeout'])) $input_errors[] = "The field 'Connection timeout' value is not a number."; - if (!is_numeric($_POST['server_timeout'])) + if ($_POST['server_timeout'] !== "" && !is_numeric($_POST['server_timeout'])) $input_errors[] = "The field 'Server timeout' value is not a number."; - if (!$_POST['retries'] && is_numeric($_POST['retries'])) + if ($_POST['retries'] !== "" && !is_numeric($_POST['retries'])) $input_errors[] = "The field 'Retries' value is not a number."; if (preg_match("/[^a-zA-Z0-9\.\-_]/", $_POST['stats_username'])) @@ -215,7 +215,7 @@ row_helper(); - + @@ -476,14 +476,14 @@ row_helper(); Connection timeout size="64"> -
the time (in milliseconds) we give up if the connection does not complete within (30000).
+
the time (in milliseconds) we give up if the connection does not complete within (default 30000).
Server timeout size="64"> -
the time (in milliseconds) we accept to wait for data from the server, or for the server to accept data (30000).
+
the time (in milliseconds) we accept to wait for data from the server, or for the server to accept data (default 30000).
@@ -586,6 +586,7 @@ set by the 'retries' parameter. rows = 1; totalrows = ; loaded = ; + updatevisibility(); -- cgit v1.2.3