Pusher doesn't reconnect when network is disconnected for ~5 min
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- networking
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 315
- Fork
- 140
- Merge trung bình
- 10 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pusher/pusher-websocket-java
-
java.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0 on Android API 21-22 anywayCó thể đã có người làm @Keith-wright đã nhận 12 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
pusher/pusher-websocket-java#366 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
pusher/pusher-websocket-java#340 · 3 bình luận · 7 reaction ·
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 8/100
pusher/pusher-websocket-java#311 · 4 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 12/100
pusher/pusher-websocket-java#308 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
pusher/pusher-websocket-java#303 · 4 bình luận ·
Tất cả issue của pusher/pusher-websocket-java
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Shweit/EtherealPortals#30 ·
-
Typo in jakartaee-bom 12.0.0-SNAPSHOT with cdiCó thể đã có người làm @ElectLive đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
jakartaee/jakartaee-api#205 · 1 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
liberation-data/drivine4j#547 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
BindingServiceProperties.bindings regressed to a non-thread-safe TreeMap in GH-3158: concurrent first use of binding names corrupts itCó thể đã có người làm @AkashB23 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
spring-cloud/spring-cloud-stream#3321 ·
Maintainer thường phản hồi trong vòng 1 ngày