python-hyper / python-hyper/wsproto
Compression
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 303
- Forks
- 57
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I see compression uses zlib. It seems to be one potential CPU-bound operation. In an async framework, one would run that in a thread to avoid blocking the event loop, but since wsproto is a sans-IO library, I don't know what to do. Running handlers in a thread in my async web framework is not an option because I need to access an object that cannot be shared between multiple threads.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Start by reading src/wsproto/extensions.py around its zlib usage and trace how compression is invoked through the sans-IO WebSocket flow. No test is named; determine the appropriate integration boundary for avoiding event-loop blocking without assuming thread sharing, and establish the maintainer-approved behavior and coverage needed for the issue to be done.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- networking
- Type d'issue
- Bug
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100