From 67d78c87c95cb45e305bbb07596f99d5b4bc1a13 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 17 May 2011 21:18:33 +0000 Subject: [PATCH] Ticket #1534. Serialize all the xmlrpc requests coming to the firewall. Seems such request can stomp into each other and create either corruption of xmlrpc request or other issues. --- usr/local/www/xmlrpc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php index ebb3a24d7e..9deffcc468 100755 --- a/usr/local/www/xmlrpc.php +++ b/usr/local/www/xmlrpc.php @@ -372,6 +372,8 @@ function get_notices_xmlrpc($raw_params) { return $response; } +$xmlrpclockkey = lock('xmlrpc', LOCK_EX); + /*****************************/ $server = new XML_RPC_Server( array( @@ -412,4 +414,6 @@ $server = new XML_RPC_Server( ) ); +unlock($xmlrpclockkey); + ?>