[Spice-commits] gtk/spice-channel.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Thu Feb 9 06:21:10 PST 2012


 gtk/spice-channel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3bfadb8587f59a74d373e26385d348a105c2e425
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Tue Feb 7 15:58:47 2012 +0000

    Don't warn if setsockopt(TCP_NDELAY) fails with errno==ENOTSUP
    
    If connecting to a UNIX domain socket, it is expected that the
    setsockopt(TCP_NDELAY) call will fail with errno=ENOTSUP, so don't
    issue a warning in that case

diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index f20e8e6..de60363 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -2193,7 +2193,7 @@ ssl_reconnect:
 connected:
     rc = setsockopt(g_socket_get_fd(c->sock), IPPROTO_TCP, TCP_NODELAY,
                     (const char*)&delay_val, sizeof(delay_val));
-    if (rc != 0) {
+    if (rc != 0 && errno != ENOTSUP) {
         g_warning("%s: could not set sockopt TCP_NODELAY: %s", c->name,
                   strerror(errno));
     }


More information about the Spice-commits mailing list