New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE9 error - connection timeout #238
Comments
I have the same issue. IE10 supports native websockets, thats why it works, though IE9 uses the SWF emulation which I haven't been able to force to work. |
JarOfJan, read this: https://github.com/kanaka/websockify/tree/master/include/web-socket-js The problem was with 843 port and crpossdomain policy (because SWF needs to have this to connect). |
I'm having the same trouble. Among the things I've done to troubleshoot:
Here are the logs:
Any additional troubleshooting steps? |
I should also note that the issue may have something to do with the Flash initialization. For starters, the swfobject callback below does get called, with
Nevertheless, I don't think it's getting initialized correctly. One of the first things the WebSocketMain.swf file is supposed to do is call
However, this doesn't seem to happen - when I set a breakpoint in the JS, the |
This should really be reopened. I'm having the exact same issue. Things I did:
Running wireshark shows that there's actually a connection being made to the target port, and it's correctly requesting /websockify. It also shows that it tries to connect to port 843. Here's my log: LOG: >> RFB.constructor |
Ha! after a lot of digging, I found the problem. in rfb.js, when I change the conf.connectTimeout * 1000 to conf.connectTimeout * 4000, the problem goes away. So it looks like it's a timing issue, and the default timeout should just be increased upwards from the 2 seconds if the swf is being used. I don't really understand why though, because I had already changed "def_con_timeout = Websock_native ? 7 : 7" but it seems that that wasn't being used, which can be verified if you print the timer value in fail("Connect timeout"). |
websock.js must be getting loaded after rfb.js (Websock_native is set true or false by websock.js). IE9 is probably doing something weird with the order of dynamic loading of scripts. |
closing due to age and answer |
thx infernix .your soloution really worked.:D |
Hi.
I try to figure out why noVNC doesn't work in IE9. First of all I had a problem when SWF wasn't loaded. Just saw the message: 'canvas is not supported'.
I've found that it is because I didn't use meta tag with IE=9. Probably it will helps someone:
But after that I went to the new issue. Connection timeout. With IE10 - it works. With other browsers it works as well. IE9 not.
Here us log. May be someone knows where the trick?
LOG: Forcing uncached load of WebSocketMain.swf
LOG: >> RFB.constructor
LOG: >> Display.constructor
LOG: User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
LOG: Browser: trident 6
LOG: No scaling support
LOG: Setting viewport to full display region
LOG: Prefering javascript operations
LOG: Data URI scheme cursor not supported
LOG: << Display.constructor
LOG: Using web-socket-js bridge. Flash version: 11
LOG: >> Keyboard.allKeysUp
LOG: << Keyboard.allKeysUp
LOG: No scaling support
LOG: Setting viewport to full display region
LOG: New state 'loaded', was 'disconnected'. Msg: noVNC ready: WebSockets emulation, canvas rendering
LOG: << RFB.constructor
LOG: >> Keyboard.allKeysUp
LOG: << Keyboard.allKeysUp
LOG: New state 'connect', was 'loaded'.
LOG: >> RFB.connect
LOG: connecting to wss://host:port/hash
LOG: << RFB.connect
LOG: >> Keyboard.allKeysUp
LOG: << Keyboard.allKeysUp
LOG: Closing WebSocket connection
LOG: New state 'failed', was 'connect'. Msg: Connect timeout
LOG: Clearing connect timer
LOG: >> WebSock.onclose
LOG: Received onclose while disconnected
LOG: << WebSock.onclose
LOG: >> Keyboard.allKeysUp
LOG: << Keyboard.allKeysUp
LOG: New state 'failed', was 'failed'.
The text was updated successfully, but these errors were encountered: