Pusher doesn't reconnect when network is disconnected for ~5 min
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- java
- Ambito
- networking
Direzione di ricerca
The payload names no files. Start from the connection lifecycle and reconnect handling in the client, and from the changedConnectionState listener the reporter says fires only on initial connect. The reporter's snippets use reconnectAttemptsMax and maxReconnectGapInSeconds, which look like Swift-client syntax, so first check whether this Java client exposes those settings. Done means the client reconnects and reports a live socket ID after a 5-minute network outage. Reproducing that needs a way to drop the network for several minutes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Pusher doesn't reconnect when network is disconnected for ~5 min.
Steps to reproduce:
Connect to Pusher and subscribe to channel. Events are received as usual.
Turn off Wifi for ~5 min.
Turn on Wifi.
What I can observe is that there is a Disconnection message in the web console once Wifi is turned on, but in the app, pusher.connection.connectionState still returns connected and pusher.connection.socketId returns the disconnected(as seen in the web console) socket id.
It works fine if Wifi is turned off for less than 2-3 min - it auto reconnects and receives events again, it's only an issue when it's disconnected for ~5 min or more.
I've also added
pusher.connection.reconnectAttemptsMax = nil
pusher.connection.maxReconnectGapInSeconds = 60
but it doesn't change anything.
I've also added a listener on changedConnectionState, but the only time it fires is during the initial connection setup - it goes from connecting to connected.
- Lingua principale
- Java
- Stelle
- 315
- Fork
- 140
- Merge medio
- 10g 14h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pusher/pusher-websocket-java
-
java.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0 on Android API 21-22 anywayForse già presa @Keith-wright l’ha presa 9 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
pusher/pusher-websocket-java#366 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
pusher/pusher-websocket-java#340 · 3 commenti · 7 reazioni ·
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 8/100
pusher/pusher-websocket-java#311 · 4 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 12/100
pusher/pusher-websocket-java#308 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
pusher/pusher-websocket-java#303 · 4 commenti ·
Tutte le issue di pusher/pusher-websocket-java
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
build
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
MetricsHub/metricshub-community#1472 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
IdentityArrayObjectSet iterator remove may throw ArrayIndexOutOfBoundsExceptionForse già presa @jiteshkhatri11 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
javapathfinder/jpf-core#660 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno