facebook/php-webdriver — pull request #186 by OndraM (2014-11-21 11:19:14+00:00)
Title: Do not hardcode CURL's request timeout, added ability to set custom timeout

Commit https://github.com/facebook/php-webdriver/commit/f666d1d41aebc9b663ed20a2ffe748d9a34a29f5 hardcoded curl's request request timeout to 300 seconds.

But if you use Selenium in grid mode and have a long queue of waiting requests, it could take much longer than 5 minutes until the session create request is finished on the Selenium hub and the sessionId is acquired. So you have to overwrite the timeout to something more reasonable than 300 seconds, what is now impossible in current master.