Skip to content
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

Centrifugo 1.6.x can close connection without any reason #142

Closed
korvinko opened this issue Jan 18, 2017 · 5 comments
Closed

Centrifugo 1.6.x can close connection without any reason #142

korvinko opened this issue Jan 18, 2017 · 5 comments

Comments

@korvinko
Copy link

korvinko commented Jan 18, 2017

Centrifugo 1.6.1 run locally on 127.0.0.1 with memory engine.
After some random actions on page it can suddenly close connection though I do not leave page or close connection by javacript API.

Server logs:
image

Client logs:
image

Server config:

{
  "secret": "sec"
  "admin_password": "pass",
  "admin_secret": "admin_sec",
  "join_leave": false,
  "anonymous": false,
  "publish": true,
  "watch": true,
  "presence": true,
  "history_size": 100,
  "history_lifetime": 1800,
  "recover": true,
  "history_drop_inactive": true,
  "namespaces": [
    {
      "name": "system",
      "publish": true,
      "anonymous": true,
      "watch": true,
      "presence": true,
      "join_leave": true,
      "history_size": 0,
      "history_lifetime": 0,
      "history_drop_inactive": false
    }
  ]
}

Last messages before disconnect:
image

Centrifugo web admin "messages" section does not show any big messages. And can not be problem with network because it run locally.

@korvinko
Copy link
Author

Same for 1.6.2

@FZambia
Copy link
Member

FZambia commented Jan 18, 2017

Thanks for a report!

Do you use latest javascript client? Could you try to reproduce this when ping: false in js client options?

@korvinko
Copy link
Author

korvinko commented Jan 18, 2017

Yes, ping: false solved problem.

On client side centrifugo-js: 1.4.1 without sockjs.

@FZambia
Copy link
Member

FZambia commented Jan 18, 2017

Yeah, I see a problem - it's introduced with 1.6.0, will fix it very soon, until that moment you can use ping: false to avoid such disconnects.

@FZambia FZambia changed the title Centrifugo can close connection without any reason Centrifugo 1.6.x can close connection without any reason Jan 18, 2017
@FZambia
Copy link
Member

FZambia commented Jan 19, 2017

@johndoejdg fixed in 1.6.3, many thanks for your detailed report

Also I suggest updating centrifuge-js to version 1.4.2 for those who use SockJS polling transports.

@FZambia FZambia closed this as completed Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants