Skip to content

Various small bug fixes for variable-connecion branch

Hi @ofourdan, can you add these fixes to wayland/wayland!188 (merged) please?

  1. If wl_connection_flush() fails with EAGAIN but the transmit ring-buffer has space remaining (or can be expanded), wl_connection_queue() should store the message rather than returning an error.

  2. When the receive ring-buffer is at capacity but more data is available to be read, wl_connection_read() should attempt to expand the ring-buffer in order to read the remaining data.

(1) and (2) fix wayland/weston#589.

  1. Try to flush buffer in wl_connection_write/put_fd().
    This restores the previous behavior (before the buffer sizes were made variable) and fixes a hang starting Xwayland from labwc.

Merge request reports