-
Notifications
You must be signed in to change notification settings - Fork 145
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
mobile frontend socket timeouts #48
Comments
warn: socket.io: websocket connection invalid iPhone 5 with ios7 and mobile safari ofer LTE |
Strange, with latest released version the timeout is at 20 seconds. So probably it was the mobile connection that was dropping and not the connection that timed out. However I will add a option for it. |
The warnings are ok, socket.io is just a little to verbose. It seems to be realy the connection thats dropping not the timeout |
could also be a problem with heartbeat timeout, see: |
info: socket.io: handshake authorized vi23oOpvqaeg1QwDD1zN that is the log of one reconnect
|
could we maybe get more info on the kind of error here? |
you can display the error with |
It looks like socket.io doesn't expose a error. |
seems to be that. Could you try the mention fix attempt? |
But it exposes errors on client side which we not yet fully log/print. Have tried the Fix with setting a high heartbeat timeout, didn't work but I expected that. Also tried to increase the timeout for the first connection attempt (500ms) but it did not help. It really looks like the connection is dropping, maybe I find some time to look at it with a packet analyzer. The heartbeat didn't really make sense because connection was not dropping once successfully connected but only on the first connection attempts. Like this: |
Just found this: could verry well be the problem! Damn T-mobile |
SSL would help :) the can not prox it :D, will set it up soon |
strange. The bug seems to be iphone related. I don't experimenced that on android... |
You should anyway :) |
I do not expose my RPI to the internet. I use VPN to access it remotely. This is secure and works like a charm. sweetpi notifications@github.com schrieb am 06.02.2014:
|
sounds good :). Hm but than T-mobile can't touch you connections or am I wrong.. |
You're right. It's like being logged in locally. With my fritzbox it is very easy to set up. sweetpi notifications@github.com schrieb am 06.02.2014:
|
I will set SSL up for sure, currently only test setup. Your android would I don't like the vpn approach for some reasons:
2014-02-06 elektronaut69 notifications@github.com:
|
Fully aggree. So I close this. If the problem still exists with SSL please repopen it. |
I have just tried to connect to pimatic mobile frontend via a slow mobile connection from my smartphone and it took many tries to connect the socket. The screen was changing from "could not connect, retrying..." to "connecting" several times then the login screen appears. As soon as it has managed to connect it works quite fast. Maybe the timeouts should be configurable within settings.
The text was updated successfully, but these errors were encountered: