Manual:$wgHTTPMaxConnectTimeout/en

Details
The maximum HTTP connect timeout in seconds. If any specified or configured connect timeout is larger than this, then this value will be used instead.