From 8239af2dc167fd865818a29b4e01d7e464d564d3 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Wed, 11 Oct 2017 02:41:37 +0200 Subject: [PATCH] xmlrpc, webgui, prevent that a xmlrpc.lock is placed that is never unlocked, thus hanging php and the webgui after a few more sync request are trying to acquire the lock and all are waiting.. --- src/usr/local/www/xmlrpc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/usr/local/www/xmlrpc.php b/src/usr/local/www/xmlrpc.php index ee6b3de914..8d88f84bb3 100644 --- a/src/usr/local/www/xmlrpc.php +++ b/src/usr/local/www/xmlrpc.php @@ -536,6 +536,10 @@ class pfsense_xmlrpc_server { } } +// run script untill its done and can 'unlock' the xmlrpc.lock, this prevents hanging php-fpm / webgui +ignore_user_abort(true); +set_time_limit(0); + $xmlrpclockkey = lock('xmlrpc', LOCK_EX); XML_RPC2_Backend::setBackend('php');