Manual:$wgHTTPMaxTimeout

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

Zero is interpreted as "no limit".