diff options
author | Nozomi Anzai | 2011-10-12 07:38:33 +0000 |
---|---|---|
committer | Nozomi Anzai | 2011-10-12 07:38:33 +0000 |
commit | 9dcd2c5d60e0bb0996cd191e4bf52d7dc82b0cca (patch) | |
tree | 36fb45c778a372e63e6c2f6c8bec4746a204b58e | |
parent | eec4d13bc85f716ee0444e2f3aa167f39a4cd776 (diff) |
remove the parameter "pcp_timeout" and set default timeout seconds : 10s.
-rw-r--r-- | command.php | 8 | ||||
-rw-r--r-- | definePgpoolConfParam.php | 6 | ||||
-rw-r--r-- | templates/pgconfig.tpl | 10 |
3 files changed, 6 insertions, 18 deletions
diff --git a/command.php b/command.php index f316bad..ce64a80 100644 --- a/command.php +++ b/command.php @@ -25,6 +25,10 @@ require_once('common.php'); +// timeout seconds +// (The parameter "pcp_timeout" existed till V3.0.) +define('PCP_TIMEOUT', 10); + /** * Execute pcp command * @@ -55,7 +59,7 @@ function execPcp($command, $num = '') $param = readPcpInfo(); $param['hostname'] = _PGPOOL2_PCP_HOSTNAME; - $args = " " . $param['pcp_timeout'] . + $args = " " . PCP_TIMEOUT. " " . $param['hostname'] . " " . $param['pcp_port'] . " ". $_SESSION[SESSION_LOGIN_USER] . @@ -163,7 +167,7 @@ function execPcp($command, $num = '') */ function readPcpInfo() { - $params = readConfigParams(array('pcp_port', 'pcp_timeout')); + $params = readConfigParams(array('pcp_port')); return $params; } ?> diff --git a/definePgpoolConfParam.php b/definePgpoolConfParam.php index b402910..51bff57 100644 --- a/definePgpoolConfParam.php +++ b/definePgpoolConfParam.php @@ -75,12 +75,6 @@ $pgpoolConfigParam[$key]['default'] = 9898; $pgpoolConfigParam[$key]['min'] = 1024; $pgpoolConfigParam[$key]['max'] = NUM_MAX; -$key = 'pcp_timeout'; -$pgpoolConfigParam[$key]['type'] = 'N'; -$pgpoolConfigParam[$key]['default'] = 10; -$pgpoolConfigParam[$key]['min'] = 0; -$pgpoolConfigParam[$key]['max'] = NUM_MAX; - $key = 'pcp_socket_dir'; $pgpoolConfigParam[$key]['type'] = 'C'; $pgpoolConfigParam[$key]['default'] = '/tmp'; diff --git a/templates/pgconfig.tpl b/templates/pgconfig.tpl index 270de8b..e487677 100644 --- a/templates/pgconfig.tpl +++ b/templates/pgconfig.tpl @@ -159,16 +159,6 @@ function cancelNode() { <td><input type="text" name="pcp_port" value="{$params.pcp_port|escape}"/></td> </tr> - <tr> {if $error.pcp_timeout != null} - <th class="error"><label>{$message.descPcp_timeout|escape}</label> - <br />pcp_timeout (integer)</th> - {else} - <th><label>{$message.descPcp_timeout|escape}</label> - <br />pcp_timeout (integer)</th> - {/if} - <td><input type="text" name="pcp_timeout" value="{$params.pcp_timeout|escape}"/></td> - </tr> - <tr> {if $error.pcp_socket_dir != null} <th class="error"><label>{$message.descPcp_socket_dir|escape}</label> <br />pcp_socket_dir (string) *</th> |