protected function checkTimeout()
    {
        $info = stream_get_meta_data($this->socket);
        if ($info['timed_out'] || $this->deadline && time() > $this->deadline) {
            $reason = $this->deadline
                ? "after {$this->timeout} second(s)"
                : 'due to default_socket_timeout php.ini setting';
            throw new HTTP_Request2_MessageException(
                "Request timed out {$reason}", HTTP_Request2_Exception::TIMEOUT
            );
        }
    }
protected function checkTimeout()
    {
        $info = stream_get_meta_data($this->socket);
        if ($info['timed_out'] || $this->deadline && time() > $this->deadline) {
            $reason = $this->deadline
                ? "after {$this->timeout} second(s)"
                : 'due to default_socket_timeout php.ini setting';
            throw new HTTP_Request2_MessageException(
                "Request timed out {$reason}", HTTP_Request2_Exception::TIMEOUT
            );
        }
    }
protected function checkTimeout ( ) { $ info = stream_get_meta_data ( $ this -> socket ) ; if ( $ info [ 'timed_out' ] || $ this -> deadline && time ( ) > $ this -> deadline ) { $ reason = $ this -> deadline ? "after {$this->timeout} second(s)" : 'due to default_socket_timeout php.ini setting' ; throw new HTTP_Request2_MessageException ( "Request timed out {$reason}" , HTTP_Request2_Exception :: TIMEOUT ) ; } }
Throws an Exception if stream timed out

@throws HTTP_Request2_MessageException
Throws an Exception if stream timed out