protected function _checkSocketReadTimeout()
    {
        if ($this->socket) {
            $info = stream_get_meta_data($this->socket);
            $timedout = $info['timed_out'];
            if ($timedout) {
                $this->close();

                throw new Zend_Http_Client_Adapter_Exception(
                    "Read timed out after {$this->config['timeout']} seconds",
                    Zend_Http_Client_Adapter_Exception::READ_TIMEOUT
                );
            }
        }
    }
protected function _checkSocketReadTimeout()
    {
        if ($this->socket) {
            $info = stream_get_meta_data($this->socket);
            $timedout = $info['timed_out'];
            if ($timedout) {
                $this->close();

                throw new Zend_Http_Client_Adapter_Exception(
                    "Read timed out after {$this->config['timeout']} seconds",
                    Zend_Http_Client_Adapter_Exception::READ_TIMEOUT
                );
            }
        }
    }
protected function _checkSocketReadTimeout ( ) { if ( $ this -> socket ) { $ info = stream_get_meta_data ( $ this -> socket ) ; $ timedout = $ info [ 'timed_out' ] ; if ( $ timedout ) { $ this -> close ( ) ; throw new Zend_Http_Client_Adapter_Exception ( "Read timed out after {$this->config['timeout']} seconds" , Zend_Http_Client_Adapter_Exception :: READ_TIMEOUT ) ; } } }
Check if the socket has timed out - if so close connection and throw
an exception

@throws Zend_Http_Client_Adapter_Exception with READ_TIMEOUT code
Check if the socket has timed out - if so close connection and throw an exception