crossbario / crossbario/autobahn-python

Support preparsed HTTP requests for WebSocket connections

Open
#643 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.