eyeos / spice-web-client

A full featured and high performance SPICE web client written in Javascript and HTML5
MIT License
290 stars 104 forks source link

timeout #15

Open Garreat opened 8 years ago

Garreat commented 8 years ago

After around 60 seconds of no client input, the connection gets terminated (1006). How to adjust this period? I think I saw it somewhere in the files, just cannot find it now... Ideally, I would totally skip the auto-timeout.

Thank you.

Garreat commented 8 years ago

I got rid of it by adjusting proxy_read_timeout and proxy_send_timeout on my nginx proxies!

BUT then I switched my OS from RHEL 6 to Ubuntu Xenial and the issue is back. Now it's not 60s, but like 20-40min. My bet on client OS killing the idle connection after some time...

Is there any heartbeat mechanism built into the eyeOS client? I can see stuff like

'heartbeatToken': 'heartbeat',
'heartbeatTimeout': 4000,//miliseconds

in run.js.

Anyone? Input highly appreciated.