Project

General

Profile

Bug #1852

NoVNC Connection timeout with Firefox 15

Added by Jaroslav Henner about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
VM management
Target version:
Difficulty:
trivial
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

I'm using Foreman with libvirt with about 15 vms. I started getting Connection Timeout when displaying the noVNC. I managed to fix this problem by increasing some values in /usr/share/foreman/public/javascripts/noVNC/rfb.js:

    def_con_timeout  = Websock_native ? 5 : 15,

'disconnectTimeout',  'rw', 'int', 5,    'Time (s) to wait for disconnection'

Associated revisions

Revision 12ae4553 (diff)
Added by Ohad Levy almost 7 years ago

fixes #1852 - NoVNC Connection timeout with Firefox 15

History

#1 Updated by Ohad Levy about 7 years ago

  • Priority changed from High to Normal

do you have any idea why would it take more than 5 seconds to open a connection? is it a slow network?

#2 Updated by Jaroslav Henner about 7 years ago

I think libvirt may be too slow to response. But I think it is irrelevant what is causing such lag. I would expect there is no harm done if the timeout is increased. On the other hand, there is harm when it is too low!

On the other hand, from what I've found, TCP handshake sends 5 SYN packets, waiting no more than 200+800+1600+3200 = 5800ms.

#3 Updated by Ohad Levy about 7 years ago

ok, care to send a pull request / patch? :)

#4 Updated by Ohad Levy about 7 years ago

  • Subject changed from NoVNC Connection timeout when using libvirt to NoVNC Connection timeout with Firefox 15
  • Target version set to 1.1

ok, the real cause for this issue is described here:
https://bugzilla.mozilla.org/show_bug.cgi?id=789018

summary, FF15 opens too many connections at once, so the timeout fix (as shown in this patch and still waiting for a pull request) would be a workaround only for FF15.

#5 Updated by Ohad Levy about 7 years ago

  • Assignee set to Jaroslav Henner

#6 Updated by Ohad Levy almost 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF