Flush the protocol output buffer when it fills up
Flush the protocol output buffer when it fills up

Original patch from bnf.

Signed-off-by: Corentin Chary <4153b5fcec9d8639b77e759711dc8338f0db8708@gmail.com>

eyolfson/wayland,abooij/wayland,abooij/wayland,mchalupa/wayland,tulcod/wayland,sir-murray/wayland,bitfactor/wayland,eyolfson/wayland,sir-murray/wayland,bitfactor/wayland,mchalupa/wayland,abooij/wayland,tulcod/wayland,bitfactor/wayland,sir-murray/wayland,eyolfson/wayland,tulcod/wayland,mchalupa/wayland