From: Roland Haeder Date: Sat, 12 Sep 2015 20:47:20 +0000 (+0200) Subject: Added config entry for configuring the IPC socket file name. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a7c844ebb8635c499610fe195450ed5138f9e011;p=core.git Added config entry for configuring the IPC socket file name. Signed-off-by: Roland Häder --- diff --git a/inc/config.php b/inc/config.php index 7d263be3..2f3b5faa 100644 --- a/inc/config.php +++ b/inc/config.php @@ -461,5 +461,8 @@ $cfg->setConfigEntry('feature_fuse_class', 'FuseFeature'); // CFG: TEMP-FILE-PATH $cfg->setConfigEntry('temp_file_path', sys_get_temp_dir()); +// CFG: IPC-SOCKET-FILE-NAME +$cfg->setConfigEntry('ipc_socket_file_name', 'php_ipc_socket'); + // [EOF] ?> diff --git a/inc/main/classes/listener/socket/class_SocketFileListener.php b/inc/main/classes/listener/socket/class_SocketFileListener.php index 35469d8c..63d8d1de 100644 --- a/inc/main/classes/listener/socket/class_SocketFileListener.php +++ b/inc/main/classes/listener/socket/class_SocketFileListener.php @@ -73,7 +73,7 @@ class SocketFileListener extends BaseListener implements Listenable { } // END - if // Create file name - $socketFile = self::createTempPathForFile('php_hub_ipc_socket'); + $socketFile = self::createTempPathForFile($this->getConfigEntry('ipc_socket_file_name')); // Debug message self::createDebugInstance(__CLASS__)->debugOutput('SOCKET-FILE-LISTENER[' . __METHOD__ . ':' . __LINE__ . ']: socketFile=' . $socketFile . ' ...');