Assembla home | Assembla project page
 

Changeset 269

Show
Ignore:
Timestamp:
07/26/08 17:37:26 (4 months ago)
Author:
tobias382
Message:

Added a connection attempt timeout to the streams driver to avoid having it hang in environments where outgoing traffic on the port in use is blocked

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Driver/Streams.php

    r245 r269  
    117117        } 
    118118 
    119         $this->socket = @stream_socket_client('tcp://' . $server . ':' . $port, $errno, $errstr); 
     119        $this->socket = @stream_socket_client('tcp://' . $server . ':' . $port, $errno, $errstr, 10); 
    120120        if (!$this->socket) { 
    121121            $this->debug(rtrim('Unable to connect to server: socket error ' . $errno . ' ' . $errstr));