[Spice-devel] [PATCH] applying zlib compression over glz on WAN connection

Alon Levy alevy at redhat.com
Mon Jun 14 22:31:21 PDT 2010


[snip]

> +                            sizeof(zlib_data->data.bufs_head->buf));
> +
> +    // the compressed buffer is bigger than the original data
> +    if (zlib_size >= glz_size) {

Does this actually happen in practice?

> +        while (zlib_data->data.bufs_head) {
> +            RedCompressBuf *buf = zlib_data->data.bufs_head;
> +            zlib_data->data.bufs_head = buf->send_next;
> +            red_display_free_compress_buf(display_channel, buf);
> +        }
> +        goto glz;
> +    }
> +



More information about the Spice-devel mailing list