OK, using my colleagues F19 PC, I was able to get an strace of
remote-viewer.
grepping for setsockopt on the strace output shows
---
30548 setsockopt(10, SOL_SOCKET, SO_ATTACH_FILTER,
"\10\0\0\0\0\0\0\0\20\204\26\363\377\177\0\0", 16) = 0
30548 setsockopt(10, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
30548 setsockopt(18, SOL_SOCKET, SO_ATTACH_FILTER,
"\10\0\0\0\0\0\0\0\260\202\26\363\377\177\0\0", 16) = 0
30548 setsockopt(18, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
30548 setsockopt(9, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
30548 setsockopt(9, SOL_TCP, TCP_NODELAY, [1], 4) = 0
30548 setsockopt(9, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
30548 setsockopt(9, SOL_TCP, TCP_NODELAY, [1], 4) = 0
30548 setsockopt(22, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
30548 setsockopt(22, SOL_TCP, TCP_NODELAY, [1], 4) = 0
30548 setsockopt(22, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
30548 setsockopt(22, SOL_TCP, TCP_NODELAY, [1], 4) = 0
30548 setsockopt(25, SOL_SOCKET, SO_KEEPALIVE, [1], 4 <unfinished ...>
30548 <... setsockopt resumed> ) = 0
30548 setsockopt(25, SOL_TCP, TCP_NODELAY, [1], 4 <unfinished ...>
30548 <... setsockopt resumed> ) = 0
30548 setsockopt(25, SOL_SOCKET, SO_KEEPALIVE, [1], 4 <unfinished ...>
30548 <... setsockopt resumed> ) = 0
30548 setsockopt(25, SOL_TCP, TCP_NODELAY, [1], 4 <unfinished ...>
30548 <... setsockopt resumed> ) = 0
30548 setsockopt(24, SOL_SOCKET, SO_KEEPALIVE, [1], 4 <unfinished ...>
30548 <... setsockopt resumed> ) = 0
30548 setsockopt(24, SOL_TCP, TCP_NODELAY, [1], 4 <unfinished ...>
30548 <... setsockopt resumed> ) = 0
30548 setsockopt(25, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
30548 setsockopt(25, SOL_TCP, TCP_NODELAY, [1], 4) = 0
30548 setsockopt(30, SOL_SOCKET, SO_ATTACH_FILTER,
"\10\0\0\0\0\0\0\0\300~\26\363\377\177\0\0", 16) = 0
30548 setsockopt(30, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
30548 setsockopt(27, SOL_SOCKET, SO_ATTACH_FILTER,
"\10\0\0\0\0\0\0\0\340z\26\363\377\177\0\0", 16) = 0
30548 setsockopt(27, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
---
So remote-viewer is sending keep alives...
Back to wondering why, after 30 minutes of inactivity, the SPICE sessions
become unusable in our environment.
CC
Post by Colin CoeI'll wait til Friday (not in the office tomorrow and working from home
ATM) and try from my colleagues PC (F19) as that has virt-viewer 0.5.6
Thanks
Post by Christophe FergeauPost by Colin CoeYep, tried that and get error "Cannot determine the connection type from
URI"
remote-viewer -V
remote-viewer version 0.5.4
Ah hmm this is too old to be able to open the .vv file, support was added
in 0.5.5. I'd say you are missing some certificates for the SSL connection.
You can get the CA certificate from the IP of your RHEV/oVirt instance,
wget https://ovirt.example.com/ca.crt and then pass this to remote-viewer
using --spice-ca-file=ca.crt. You should also check if the .vv file defines
a host subject, and if so, pass it with --spice-host-subject.
Christophe
--
RHCE#805007969328369
--
RHCE#805007969328369