def patch_request(self, *args, **kwargs):
    """Override _request to set socket timeout to some appropriate value."""
    exception = HTTPException("Unable to get response")
    for _ in range(3):
        try:
            return old_request(self, *args, **kwargs)
        except (OSError, HTTPException, MaxRetryError) as exc:
            exception = exc
            self._conn = urllib3.PoolManager(timeout=self._timeout)
    raise exception
Override _request to set socket timeout to some appropriate value.
splinter/driver/webdriver/remote_connection.py