mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
Do not assume that SPICE is using a TCP socket
If setting the TCP_NODELAY socket option fails with ENOTSUP, then don't treat this is a fatal error. SPICE is likely just running over a UNIX socket instead. * server/inputs_channel.c: Ignore TCP_NODELAY socket opt fails Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
bd07dde530
commit
492ddb5d1d
@ -466,8 +466,10 @@ static int inputs_channel_config_socket(RedChannelClient *rcc)
|
||||
|
||||
if (setsockopt(stream->socket, IPPROTO_TCP, TCP_NODELAY,
|
||||
&delay_val, sizeof(delay_val)) == -1) {
|
||||
red_printf("setsockopt failed, %s", strerror(errno));
|
||||
return FALSE;
|
||||
if (errno != ENOTSUP) {
|
||||
red_printf("setsockopt failed, %s", strerror(errno));
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if ((flags = fcntl(stream->socket, F_GETFL)) == -1 ||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user