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

Sync service complains about multiple connections from the same client #1335

Open
alco opened this issue Jun 6, 2024 · 1 comment
Open

Comments

@alco
Copy link
Member

alco commented Jun 6, 2024

Multiple people have reported this happen for different reasons.

Here's one such report:

When using the Dart client, after the app closes and Electric considers the client disconnected because of not responding to the ping, Electric will complain about multiple connections from the same client.
How is that possible? Maybe the service is not clearing the client_id connection that was closed due to the unresponded ping?

-- App disconnects, without gracefully closing the socket connection --
-- After a while, the server disconnects the client --

electric-1  | 16:00:17.172 pid=<0.4058.0> client_id=8c120869-9cc5-43cb-b8bb-c042e747e07a instance_id=4f15a93c-91b1-4f99-98da-3e916829b330 user_id=6bdd56fa-acd7-4349-8de8-7735859494bf [info] Client is not responding to ping, disconnecting

-- User reopens the app and reconnects --

electric-1  | 16:00:26.029 pid=<0.4063.0> [info] GET /ws
electric-1  | 16:00:26.030 pid=<0.4063.0> instance_id=4f15a93c-91b1-4f99-98da-3e916829b330 [info] Sent 101 in 343µs
electric-1  | 16:00:27.351 pid=<0.4063.0> client_id=8c120869-9cc5-43cb-b8bb-c042e747e07a instance_id=4f15a93c-91b1-4f99-98da-3e916829b330 [info] attempted multiple connections from the same client

Issue report on the Dart client with full client and server logs: SkillDevs/electric_dart#23

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

1 participant