2

我正在使用Websockify通过noVNC连接到 VNC 服务器 (TightVNC) 。这适用于 Firefox 14.0.1、Chrome 21 甚至 IE 10。现在我升级到 Firefox 15 并开始出现问题:

这是 websockify 的示例输出:

>websockify.exe 6080 localhost:5900 -v
WARNING: no 'resource' module, daemonizing support disabled
WebSocket server settings:
  - Listen on :6080
  - Flash security policy server
  - No SSL/TLS support (no cert file)
  - proxying from :6080 to localhost:5900

#Connection with Chrome

  1: 79.194.220.16: Plain non-SSL (ws://) WebSocket connection
  1: 79.194.220.16: Version hybi-13, base64: 'True'
  1: connecting to: localhost:5900

Traffic Legend:
    }  - Client receive
    }. - Client receive partial
    {  - Target receive

    >  - Target send
    >. - Target send partial
    <  - Client send
    <. - Client send partial

{<}>{<}>{<}>{<}>{<}>{{<<}>}>{}><}>}>}>}>  1: localhost:5900: Target closed
  1: 79.194.220.16: Client closed, reason: None - None

#Chrome disconnected, Firefox tries to connect

  2: 79.194.220.16: ignoring socket not ready
  3: 79.194.220.16: Plain non-SSL (ws://) WebSocket connection
  3: 79.194.220.16: Version hybi-13, base64: 'True'
  3: connecting to: localhost:5900

Traffic Legend:
    }  - Client receive
    }. - Client receive partial
    {  - Target receive

    >  - Target send
    >. - Target send partial
    <  - Client send
    <. - Client send partial

{<

在最后一行 websockify 挂起之后,不接受其他连接。这是 Firefox 的控制台输出:

New state 'loaded', was 'disconnected'. Msg: noVNC ready: native WebSockets, canvas rendering

util.js (Zeile 110)

New state 'connect', was 'loaded'.

util.js (Zeile 110)

WebSocket on-error event

util.js (Zeile 110)

New state 'failed', was 'connect'. Msg: Connect timeout


case 'error': Util.Error = function (msg) { console.error(msg); };

util.js (Zeile 111)

Firefox kann keine Verbindung zu dem Server unter ws://ec2-176-34-194-149.eu-west-1.compute.amazonaws.com:6080/websockify aufbauen.


websocket = new WebSocket(uri, 'base64');

websock.js (Zeile 275)

WebSocket on-close event

util.js (Zeile 110)

Received onclose while disconnected (code: 1006)


case 'error': Util.Error = function (msg) { console.error(msg); };

util.js (Zeile 111)

New state 'disconnected', was 'failed'.

如前所述,这在 FF 14.0.1 中完美运行,并且在 Chrome 21 和 IE 10 中仍然有效。

知道为什么 Firefox 会破坏 websockify 吗?这是 Firefox Websocket 代码中的错误还是 Websockify 中的错误?

4

1 回答 1

2

我已回复您的 Mozilla 错误报告:https ://bugzilla.mozilla.org/show_bug.cgi?id=789018

总之,这是一个 Windows/python 问题与 Firefox 15 中的错误功能(推测连接)相结合。

作为临时解决方案,您可以增加 noVNC 中的连接超时。

于 2012-09-06T14:21:59.280 回答