diff --git a/MathRestbaseInterface.php b/MathRestbaseInterface.php index 747ba79..8a4fbaa 100644 --- a/MathRestbaseInterface.php +++ b/MathRestbaseInterface.php @@ -151,8 +151,9 @@ class MathRestbaseInterface { } private function getServiceClient() { - global $wgVirtualRestConfig; - $serviceClient = new VirtualRESTServiceClient( new MultiHttpClient( [] ) ); + global $wgVirtualRestConfig, $wgMathConcurrentReqs; + $http = new MultiHttpClient( [ 'maxConnsPerHost' => $wgMathConcurrentReqs ] ); + $serviceClient = new VirtualRESTServiceClient( $http ); if ( isset( $wgVirtualRestConfig['modules']['restbase'] ) ) { $cfg = $wgVirtualRestConfig['modules']['restbase']; $cfg['parsoidCompat'] = false; diff --git a/extension.json b/extension.json index 75d1cdc..4f2a525 100644 --- a/extension.json +++ b/extension.json @@ -108,6 +108,7 @@ "MathMathMLTimeout": 20, "MathMathMLUrl": "http://mathoid.testme.wmflabs.org", "MathFullRestbaseURL": false, + "MathConcurrentReqs": 50, "MathPath": false, "MathTexvcCheckExecutable": false, "MathValidModes": [