diff --git a/gdk/broadway/broadway.c b/gdk/broadway/broadway.c index d5e944d382..714905f9cf 100644 --- a/gdk/broadway/broadway.c +++ b/gdk/broadway/broadway.c @@ -4,6 +4,10 @@ #include #include #include +#include +#include +#include +#include #include "broadway.h" @@ -540,12 +544,15 @@ BroadwayOutput * broadway_output_new(int fd, guint32 serial) { BroadwayOutput *output; + int flag = 1; output = g_new0 (BroadwayOutput, 1); output->fd = fd; output->serial = serial; + setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *) &flag, sizeof(int)); + broadway_output_write_header (output); output->zfd = gzdopen(fd, "wb");