From a7c844ebb8635c499610fe195450ed5138f9e011 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 12 Sep 2015 22:47:20 +0200 Subject: [PATCH] Added config entry for configuring the IPC socket file name. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/config.php | 3 +++ inc/main/classes/listener/socket/class_SocketFileListener.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 . ' ...'); -- 2.39.5