Bug#487635: Bug #487635: Performance degradation over remote ssh X11 forwarded display
a patch reported upstream seems to resolve the issue for some LTSP users
(haven't confirmed myself):
http://bugs.freedesktop.org/show_bug.cgi?id=17868
http://bugs.freedesktop.org/attachment.cgi?id=26071
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 4ae9097..8873f26 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -30,6 +30,7 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
+#include <netinet/tcp.h>
#ifdef DNETCONN
#include <netdnet/dnetdb.h>
#include <netdnet/dn.h>
@@ -250,6 +251,9 @@ static int _xcb_open_tcp(char *host, char *protocol,
const unsigned short port)
{
fd = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
if(fd >= 0) {
+ int on = 1;
+ setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
+
if (connect(fd, addr->ai_addr, addr->ai_addrlen) >= 0)
break;
close(fd);
live well,
vagrant
Reply to: