Improve control on close reason
- Langage dominant
- Go
- Étoiles
- 5.5k
- Forks
- 372
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
What's the intended usage pattern of the Reader and Writer context w.r.t. closing the connection from the server side?
It seems like the connection is closed automatically by the reader / writer when the context is cancelled. However, I don't have any way of impacting the status and reason for that close within the reader / writer.
Is the intention that the user of the reader / writer closes the connection with the status and reason they want and let the writer / reader return?
Another option could be that this package would support influencing the close status and reason via an error provided as context cancellation cause.
WDYT?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par retracer la manière dont Reader et Writer gèrent l’annulation du contexte et la manière dont les appelants ferment actuellement la connexion côté serveur. Comparez l’approche proposée de cancellation cause avec la fermeture explicite de la connexion, puis définissez le comportement attendu de close status et reason avant d’identifier les tests pour les deux chemins.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- go
- Domaine
- networking
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 30/100