public function setConnectionTimeout($timeout)
  {
    if (preg_match("#[0-9]+#", $timeout))
    {
      $this->PageRequest->socketConnectTimeout = $timeout;
      return true;
    }
    else
    {
      return false;
    }
  }
public function setConnectionTimeout($timeout)
  {
    if (preg_match("#[0-9]+#", $timeout))
    {
      $this->PageRequest->socketConnectTimeout = $timeout;
      return true;
    }
    else
    {
      return false;
    }
  }
public function setConnectionTimeout ( $ timeout ) { if ( preg_match ( "#[0-9]+#" , $ timeout ) ) { $ this -> PageRequest -> socketConnectTimeout = $ timeout ; return true ; } else { return false ; } }
Sets the timeout in seconds for connection tries to hosting webservers.

If the the connection to a host can't be established within the given time, the
request will be aborted.

@param int $timeout The timeout in seconds, the default-value is 5 seconds.
@return bool

@section 10 Other settings
Sets the timeout in seconds for connection tries to hosting webservers .