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
Chrome: lot of Disconnection / Reconnection logged into a chatbox #2770
Comments
Console log, debug level, says what? |
I tried to capture some logs after detecting the thing. The context:
|
I don't see anything in those logs, are they from the Firefox user? I think it would be better to set your server's logs to debug level and see what gets logged there. |
@SilverYoCha why is your picture blue? Whah theme is that? How did you install Converse? |
@jcbrand yes logs comes from Firefox user. @licaon-kter default theme is used. There is just some CSS changes defined into an external CSS file. Initialization options
|
@SilverYoCha Concerning Converse logs, the logs from the Chrome user will be more useful than from the Firefox user. |
@jcbrand I got logs of my interlocutor which is using a chrome like browser. userA uses Firefox and userB the chrome like browser Chrome like browser details
|
I use ConverseJS in a Peertube plugin (Peertube is a FOSS streaming platform). I have a user that seems to have the same issue: JohnXLivingston/peertube-plugin-livechat#88 The browser logs are in the screenshots. ConverseJS can't reconnect, but this is maybe due to the way I use Converse (i will investigate next week). |
@SilverYoCha: I see that the person is using BOSH to connect instead of websocket. At some point, the XMPP server returns:
This can happen for multiple reasons: I think you should check your XMPP server's logs for information as to why it terminates the BOSH session. You can also just use websocket instead of BOSH. It's faster, simpler and better. |
@jcbrand , any idea of what explains the difference between Chrome and Firefox? Maybe Chrome closes some connections after a timeout when tab is in background? |
@JohnXLivingston I think the issue is that Chrome throttles HTTP connections and that this causes the BOSH session to expire. One possible solution could be to increase the BOSH And then you can change BOSH_WAIT to be some larger value. There's even a small chance that my commit fixes the problem without requiring you to change the value. Better yet would be to just use websocket. |
Thanks. I'll test that (not this week, I'm working on another project, but soon). I can't use websocket in my project... (I have to use the Peertube server as a proxy, I can't add a websocket server). |
…onversejs/converse.js#2770 : the possibility to set the use of websocket has been implemented.
Thank you for your recommendations @jcbrand. |
Describe the bug
When a user is using a Chrome or Chrome like browser the other users see lot of disconnection / reconnection from this user info chat or group chat room.
Have someone got same observation?
Still, their internet connection works perfectly.
To Reproduce
One user on Firefox and an other on a Chrome or Chrome like chatting between each other.
After a while, the user on Firefox will see regular disconnections / reconnections from Chrome user.
Expected behavior
Avoiding to get the disconnections / reconnections.
Screenshots
For example:
Environment
The text was updated successfully, but these errors were encountered: