Subscriptions don't call `onUnsubscribe` if a socket is unexpectedly closed
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Swift
- Estrellas
- 182
- Forks
- 29
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de swift-server/RediStack
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
swift-server/RediStack#135 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
swift-server/RediStack#133 · 5 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
swift-server/RediStack#131 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
swift-server/RediStack#129 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
swift-server/RediStack#127 ·
Todos los issues de swift-server/RediStack
Issues similares
-
Broken links in the docsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
deltachat/deltachat-ios#3388 ·
Los mantenedores suelen responder en 1 día
-
desktop-app
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
raullenchai/Rapid-MLX#4975 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
xybrid-ai/xybrid#661 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Unsigned initialization of integer types whose sign bit is set is false, even though they fit.Abiertostdlib
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
altic-dev/FluidVoice#1191 ·
Los mantenedores suelen responder en 1 día