crossbario / crossbario/autobahn-python
Support preparsed HTTP requests for WebSocket connections
Open
Nobody has claimed this yet.
enhancement
Twisted
websocket
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 768
- PR merge metrics
- No merged PRs in 30d
Description
We have a slight hack here: https://github.com/crossbario/autobahn-python/blob/master/autobahn/twisted/resource.py#L142
A better solution would be to reuse the already parsed (by twisted) HTTP requests, and not serialize to bytes and then parse again ..
Contributor guide
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.
Research direction
Start in autobahn/twisted/resource.py around line 142 and inspect how Twisted's parsed HTTP request reaches WebSocket handling. Done means WebSocket connections reuse the already parsed request instead of serializing it to bytes and parsing it again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, networking
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100