Compression
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- networking
Research direction
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.
Written by the indexing model from the issue text.
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.
- Dominant language
- Python
- Stars
- 303
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python-hyper/wsproto
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
python-hyper/wsproto#182 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 48/100
python-hyper/wsproto#173 · 1 comment ·
All issues in python-hyper/wsproto
Similar issues
-
from:qa priority:P2 reliability tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
spec-kitty/spec-kitty#4874 ·
-
fix: inaccuracy ⚠️
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
uabrc/uabrc.github.io#1255 · 1 comment ·
-
kind:bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ethereum-optimism/factory#64 ·