original_string: 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
                  );
              }
          }
      }
code: 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
                  );
              }
          }
      }
code_tokens: 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 ) ; } } }
docstring: 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
docstring_tokens: Check if the socket has timed out - if so close connection and throw an exception