Subscriptions don't call `onUnsubscribe` if a socket is unexpectedly closed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start by reading the subscription cancellation and socket error handling paths to find where onUnsubscribe is called and how unexpected closure is handled. The issue gives no file or test names, so trace those paths from the subscription entry point; done means onUnsubscribe is called when the socket closes unexpectedly as well as on formal cancellation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
onUnsubscribe is currently only called when a subscription is formally cancelled by the user. If a socket error closes the connection, the subscription isn't alive anymore, but because onUnsubscribe isn't triggered there's no good way of knowing that this event was omitted.
I've currently worked around it using ARC retain/release calls. On deinit of a reference type, the onUnsubscribe is implied, though I'm not even certain that this works in practice.
- Ngôn ngữ chính
- Swift
- Star
- 182
- Fork
- 29
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọ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 swift-server/RediStack
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
swift-server/RediStack#135 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
swift-server/RediStack#133 · 5 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
swift-server/RediStack#131 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
swift-server/RediStack#129 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
swift-server/RediStack#127 ·
Tất cả issue của swift-server/RediStack
Issue tương tự
-
area/kotlin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
cable-report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
darrylmorley/whatcable#656 ·
-
UI: "Block Music launches" toggle is dangerously easy to confuse with "Turn off Apple Music"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
omlahore/RemoveMacAI#67 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[开源推荐] Cove:给终端编程助手配上 Mac 原生工作台Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
521xueweihan/HelloGitHub#4049 ·
-
[quality] macOSScreenshotLocation(): configured-location branch (ScreenshotFiles.swift:30) never executes under swift testCó thể đã có người làm @arteeh đã nhận hôm nay. Đang mởagent/quality agent/reviewer help wanted kind/test stage/040-covered-by-pr testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hivecommons/hotshot#249 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày