roundcubemail/program/lib/Roundcube/rcube_imap_generic.php
protected function eof()
    {
        if (!is_resource($this->fp)) {
            return true;
        }

        // If a connection opened by fsockopen() wasn't closed
        // by the server, feof() will hang.
        $start = microtime(true);

        if (feof($this->fp) ||
            ($this->prefs['timeout'] && (microtime(true) - $start > $this->prefs['timeout']))
        ) {
            $this->closeSocket();
            return true;
        }

        return false;
    }
protected function eof()
    {
        if (!is_resource($this->fp)) {
            return true;
        }

        // If a connection opened by fsockopen() wasn't closed
        // by the server, feof() will hang.
        $start = microtime(true);

        if (feof($this->fp) ||
            ($this->prefs['timeout'] && (microtime(true) - $start > $this->prefs['timeout']))
        ) {
            $this->closeSocket();
            return true;
        }

        return false;
    }
protected function eof ( ) { if ( ! is_resource ( $ this -> fp ) ) { return true ; } // If a connection opened by fsockopen() wasn't closed // by the server, feof() will hang. $ start = microtime ( true ) ; if ( feof ( $ this -> fp ) || ( $ this -> prefs [ 'timeout' ] && ( microtime ( true ) - $ start > $ this -> prefs [ 'timeout' ] ) ) ) { $ this -> closeSocket ( ) ; return true ; } return false ; }
Checks connection stream state.

@return bool True if connection is closed
Checks connection stream state .