[Bug 45899] Add keepalive on different channel

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 10 10:15:49 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=45899

--- Comment #2 from prochazka.nicolas at gmail.com 2012-02-10 10:15:49 PST ---
I'm trying some dev without success.
I add g_socket_set_keepalive (c->sock, TRUE);
in spice-session.c and spice-channel.c but keepalive not set.

So I do a LD_PRELOAD wrapper to keepalive all socket, without success with spicy 
but succes with socat 

Any help ?

1 / 
socat - TCP4:10.10.4.226:5930
tcp        0      0 192.150.23.165:32968    10.10.4.226:5930        ESTABLISHED 0          72551      3361/socat           off (0.00/0/0)

2 /
LD_PRELOAD=/tmp/keepalive.so socat - TCP4:10.10.4.226:5930
tcp        0      0 192.150.23.165:32964    10.10.4.226:5930        ESTABLISHED 0          72354      3357/socat           keepalive (9.45/0/0)


1/spicy -h 10.10.4.226 -p 5930
tcp        0      0 192.150.23.165:32959    10.10.4.226:5930        ESTABLISHED 0          72233      3351/spicy           off (0.00/0/0)
( 6 lines  )

LD_PRELOAD=/tmp/keepalive.so spicy -h 10.10.4.226 -p 5930
tcp        0      0 192.150.23.165:32959    10.10.4.226:5930        ESTABLISHED 0          72233      3351/spicy           off (0.00/0/0)
( 6 lines  )

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the spice-bugs mailing list