Discussion:
spice channel and conntrack netfilter
(too old to reply)
nicolas prochazka
2012-02-10 10:26:55 UTC
Permalink
Hello,
spice client establish connection to spice server.

DEV-10.98.98.1:~# conntrack -L |grep 11943
conntrack v1.0.0 (conntrack-tools): 76 flow entries have been shown.
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp      6 599 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1

my ip_conntrack_tcp_timeout_established  is set to 600 for network
performance consideration, by default it seems to be 5 days.

spice client ( spicy ) is connected to vm guest ( windows) in
screesaver mode, so there's no mouse, or keyboard event.

tcp 6 365 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 305 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
conntrack v1.0.0 (conntrack-tools): 72 flow entries have been shown.
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 595 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1

then after 600s

tcp 6 595 ESTABLISHED src=10.10.106.58 dst=10.10.4.226
sport=53868 dport=11943 src=10.10.4.226 dst=10.10.106.58 sport=11943
dport=53868 [ASSURED] mark=0 use=1

( connection for display ( screesaver send image change )


=> Then mouse, keyboard are lost , i cannot reuse them, I must kill
and restart spice client .

Is it a normal behavior ? ( channel is not recreated by client )

Regards,
Nicolas Prochazka.
Hans de Goede
2012-02-10 10:34:05 UTC
Permalink
Hi,
Post by nicolas prochazka
Hello,
spice client establish connection to spice server.
DEV-10.98.98.1:~# conntrack -L |grep 11943
conntrack v1.0.0 (conntrack-tools): 76 flow entries have been shown.
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 599 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
my ip_conntrack_tcp_timeout_established is set to 600 for network
performance consideration, by default it seems to be 5 days.
spice client ( spicy ) is connected to vm guest ( windows) in
screesaver mode, so there's no mouse, or keyboard event.
tcp 6 365 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 305 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
conntrack v1.0.0 (conntrack-tools): 72 flow entries have been shown.
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 595 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
then after 600s
tcp 6 595 ESTABLISHED src=10.10.106.58 dst=10.10.4.226
sport=53868 dport=11943 src=10.10.4.226 dst=10.10.106.58 sport=11943
dport=53868 [ASSURED] mark=0 use=1
( connection for display ( screesaver send image change )
=> Then mouse, keyboard are lost , i cannot reuse them, I must kill
and restart spice client .
Is it a normal behavior ? ( channel is not recreated by client )
Yes AFAIK this is expected behavior, esp. in combination with using
temp passwords which expire (also see my previous mail) when using
temp passwords the client-reconnecting won't help since the password
will have expired.

Regards,

Hans
nicolas prochazka
2012-02-10 14:41:23 UTC
Permalink
Hello again,
however it is seems very strange

1- spicy is connected to my linux guest
2 - I do nothing during 10 minutes, or I want to eat a peace of cake
during 10 minutes,
then mouse, keyboard , sound are not usable in my vm, I just can see
the linux desktop :)

Nicolas
Post by Hans de Goede
Hi,
Post by nicolas prochazka
Hello,
spice client establish connection to spice server.
DEV-10.98.98.1:~# conntrack -L |grep 11943
conntrack v1.0.0 (conntrack-tools): 76 flow entries have been shown.
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp      6 599 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp      6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
my ip_conntrack_tcp_timeout_established  is set to 600 for network
performance consideration, by default it seems to be 5 days.
spice client ( spicy ) is connected to vm guest ( windows) in
screesaver mode, so there's no mouse, or keyboard event.
tcp      6 365 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp      6 305 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
conntrack v1.0.0 (conntrack-tools): 72 flow entries have been shown.
tcp      6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp      6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp      6 595 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp      6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
then after 600s
tcp      6 595 ESTABLISHED src=10.10.106.58 dst=10.10.4.226
sport=53868 dport=11943 src=10.10.4.226 dst=10.10.106.58 sport=11943
dport=53868 [ASSURED] mark=0 use=1
( connection for display ( screesaver send image change )
=>  Then mouse, keyboard are lost , i cannot  reuse them, I must kill
and restart spice client .
Is it a normal behavior ?  ( channel is not recreated by client )
Yes AFAIK this is expected behavior, esp. in combination with using
temp passwords which expire (also see my previous mail) when using
temp passwords the client-reconnecting won't help since the password
will have expired.
Regards,
Hans
_______________________________________________
Spice-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/spice-devel
Dominique Rodrigues
2012-02-10 15:04:21 UTC
Permalink
Post by nicolas prochazka
Hello again,
however it is seems very strange
1- spicy is connected to my linux guest
2 - I do nothing during 10 minutes, or I want to eat a peace of cake
during 10 minutes,
then mouse, keyboard , sound are not usable in my vm, I just can see
the linux desktop :)
Nicolas
I also have a similar problem on one of my platform (Debian Squezze,
kernel 3.2, spice 0.10.1, qemu-kvm 1.0 compiled with usbredir).

Dominique
Post by nicolas prochazka
Post by Hans de Goede
Hi,
Post by nicolas prochazka
Hello,
spice client establish connection to spice server.
DEV-10.98.98.1:~# conntrack -L |grep 11943
conntrack v1.0.0 (conntrack-tools): 76 flow entries have been shown.
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 599 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
my ip_conntrack_tcp_timeout_established is set to 600 for network
performance consideration, by default it seems to be 5 days.
spice client ( spicy ) is connected to vm guest ( windows) in
screesaver mode, so there's no mouse, or keyboard event.
tcp 6 365 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 305 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
conntrack v1.0.0 (conntrack-tools): 72 flow entries have been shown.
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 595 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
then after 600s
tcp 6 595 ESTABLISHED src=10.10.106.58 dst=10.10.4.226
sport=53868 dport=11943 src=10.10.4.226 dst=10.10.106.58 sport=11943
dport=53868 [ASSURED] mark=0 use=1
( connection for display ( screesaver send image change )
=> Then mouse, keyboard are lost , i cannot reuse them, I must kill
and restart spice client .
Is it a normal behavior ? ( channel is not recreated by client )
Yes AFAIK this is expected behavior, esp. in combination with using
temp passwords which expire (also see my previous mail) when using
temp passwords the client-reconnecting won't help since the password
will have expired.
Regards,
Hans
_______________________________________________
Spice-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/spice-devel
_______________________________________________
Spice-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/spice-devel
Hans de Goede
2012-02-10 16:11:15 UTC
Permalink
Hi,
Post by nicolas prochazka
Hello again,
however it is seems very strange
1- spicy is connected to my linux guest
2 - I do nothing during 10 minutes, or I want to eat a peace of cake
during 10 minutes,
then mouse, keyboard , sound are not usable in my vm, I just can see
the linux desktop :)
I understand, so we likely need to add some keepalive code to spice,
can you please file an RFE here:

https://bugs.freedesktop.org/enter_bug.cgi?product=Spice

Regards,

Hans
Post by nicolas prochazka
Nicolas
Post by Hans de Goede
Hi,
Post by nicolas prochazka
Hello,
spice client establish connection to spice server.
DEV-10.98.98.1:~# conntrack -L |grep 11943
conntrack v1.0.0 (conntrack-tools): 76 flow entries have been shown.
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 599 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
my ip_conntrack_tcp_timeout_established is set to 600 for network
performance consideration, by default it seems to be 5 days.
spice client ( spicy ) is connected to vm guest ( windows) in
screesaver mode, so there's no mouse, or keyboard event.
tcp 6 365 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 305 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
conntrack v1.0.0 (conntrack-tools): 72 flow entries have been shown.
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 595 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
then after 600s
tcp 6 595 ESTABLISHED src=10.10.106.58 dst=10.10.4.226
sport=53868 dport=11943 src=10.10.4.226 dst=10.10.106.58 sport=11943
dport=53868 [ASSURED] mark=0 use=1
( connection for display ( screesaver send image change )
=> Then mouse, keyboard are lost , i cannot reuse them, I must kill
and restart spice client .
Is it a normal behavior ? ( channel is not recreated by client )
Yes AFAIK this is expected behavior, esp. in combination with using
temp passwords which expire (also see my previous mail) when using
temp passwords the client-reconnecting won't help since the password
will have expired.
Regards,
Hans
_______________________________________________
Spice-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/spice-devel
Alon Levy
2012-02-12 15:08:57 UTC
Permalink
Post by Hans de Goede
Hi,
Post by nicolas prochazka
Hello again,
however it is seems very strange
1- spicy is connected to my linux guest
2 - I do nothing during 10 minutes, or I want to eat a peace of cake
during 10 minutes,
then mouse, keyboard , sound are not usable in my vm, I just can see
the linux desktop :)
I understand, so we likely need to add some keepalive code to spice,
https://bugs.freedesktop.org/enter_bug.cgi?product=Spice
Actually we already have a keep alive message, it's called ping.

message {
uint32 id;
uint64 timestamp;
uint8 data[] @ctype(uint8_t) @as_ptr(data_len);
} ping;

So at least the change won't require a protocol update.
Post by Hans de Goede
Regards,
Hans
Post by nicolas prochazka
Nicolas
Post by Hans de Goede
Hi,
Post by nicolas prochazka
Hello,
spice client establish connection to spice server.
DEV-10.98.98.1:~# conntrack -L |grep 11943
conntrack v1.0.0 (conntrack-tools): 76 flow entries have been shown.
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 599 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 600 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
my ip_conntrack_tcp_timeout_established is set to 600 for network
performance consideration, by default it seems to be 5 days.
spice client ( spicy ) is connected to vm guest ( windows) in
screesaver mode, so there's no mouse, or keyboard event.
tcp 6 365 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44970
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44970
[ASSURED] mark=0 use=1
tcp 6 305 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44971
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44971
[ASSURED] mark=0 use=1
conntrack v1.0.0 (conntrack-tools): 72 flow entries have been shown.
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44967
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44967
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44966
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44966
[ASSURED] mark=0 use=1
tcp 6 595 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44969
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44969
[ASSURED] mark=0 use=1
tcp 6 302 ESTABLISHED src=10.10.4.3 dst=10.10.4.226 sport=44968
dport=5930 src=10.98.98.1 dst=10.10.4.3 sport=11943 dport=44968
[ASSURED] mark=0 use=1
then after 600s
tcp 6 595 ESTABLISHED src=10.10.106.58 dst=10.10.4.226
sport=53868 dport=11943 src=10.10.4.226 dst=10.10.106.58 sport=11943
dport=53868 [ASSURED] mark=0 use=1
( connection for display ( screesaver send image change )
=> Then mouse, keyboard are lost , i cannot reuse them, I must kill
and restart spice client .
Is it a normal behavior ? ( channel is not recreated by client )
Yes AFAIK this is expected behavior, esp. in combination with using
temp passwords which expire (also see my previous mail) when using
temp passwords the client-reconnecting won't help since the password
will have expired.
Regards,
Hans
_______________________________________________
Spice-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/spice-devel
_______________________________________________
Spice-devel mailing list
http://lists.freedesktop.org/mailman/listinfo/spice-devel
Marc-André Lureau
2012-02-12 21:34:19 UTC
Permalink
Hi
Post by Alon Levy
So at least the change won't require a protocol update.
I thought setting keep-alive on a tcp socket would be enough. But
according to https://bugs.freedesktop.org/show_bug.cgi?id=45899#c2 it
didn't help. Should the "ping" message be sent by the client, the
server, both? every 5 minutes of idle?
--
Marc-André Lureau
nicolas prochazka
2012-02-13 13:38:55 UTC
Permalink
Hi,
as you says, set keepalive is ok and correct this issue, ( my friday
test is badly, sorry )
can it commit to git ?

Regards,
Nicolas

diff --git a/spice-gtk-0.9/gtk/spice-channel.c
b/tmp/spice-gtk-0.9/gtk/spice-channel.c
index bdfb02b..49c69c9 100644
--- a/spice-gtk-0.9/gtk/spice-channel.c
+++ b/tmp/spice-gtk-0.9/gtk/spice-channel.c
@@ -2096,6 +2096,7 @@ static void *spice_channel_coroutine(void *data)
}

g_socket_set_blocking(c->sock, FALSE);
+ g_socket_set_keepalive(c->sock, TRUE);
goto connected;
}



diff --git a/spice-gtk-0.9/gtk/spice-session.c
b/tmp/spice-gtk-0.9/gtk/spice-session.c
index 33c297a..0156f94 100644
--- a/spice-gtk-0.9/gtk/spice-session.c
+++ b/tmp/spice-gtk-0.9/gtk/spice-session.c
@@ -1417,6 +1417,7 @@ static GSocket
*channel_connect_socket(SpiceChannel *channel,
return NULL;

g_socket_set_blocking(sock, FALSE);
+ g_socket_set_keepalive(sock, TRUE);
if (!g_socket_connect(sock, sockaddr, NULL, error)) {
if (*error && (*error)->code == G_IO_ERROR_PENDING) {
g_clear_error(error);
Post by Marc-André Lureau
Hi
Post by Alon Levy
So at least the change won't require a protocol update.
I thought setting keep-alive on a tcp socket would be enough. But
according to https://bugs.freedesktop.org/show_bug.cgi?id=45899#c2 it
didn't help. Should the "ping" message be sent by the client, the
server, both? every 5 minutes of idle?
--
Marc-André Lureau
Marc-André Lureau
2012-02-13 13:50:28 UTC
Permalink
On Mon, Feb 13, 2012 at 2:38 PM, nicolas prochazka
as you says, set keepalive is ok and correct this issue,  ( my friday
test is badly, sorry  )
can it commit to git ?
I did it a few hours ago (back to the future!)
http://cgit.freedesktop.org/spice/spice-gtk/commit/?id=8fe6547b6181fb7acbabedcd6ed95caf263dd8cc

thanks for your patch & testing
--
Marc-André Lureau
Gianluca Cecchi
2012-02-11 08:35:47 UTC
Permalink
Post by nicolas prochazka
Hello again,
however it is seems very strange
[snip] or I want to eat a peace of cake
Post by nicolas prochazka
during 10 minutes,
then mouse, keyboard , sound are not usable in my vm, I just can see
the linux desktop :)
So, this let us conclude that spice has another feature at the moment:

- it is diet friendly ;-)

just to mix some funny considerations between good/bad results of our tests...
Loading...