12206c14c6
The code for reestablishing conns begins after we retrieve a request from the queue. However, since the request was removed from the queue we no longer have access to it, resulting in a dropped request. This commit adds another queue to aggregate any requests during client restarts in order to preserve and handle them after the connection has been reestablished. This queue would have higher priority than the normal requests queue meaning that normal requests would only get processed if and only if there aren't any more "dropped" requests to handle. |
||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
main.py | ||
quicclient.py | ||
requirements.txt |
README.md
[WIP] Quic proxy built in Python for the Invidious project.
Usage
All requests is done through POST. A data content of
{"headers": {"Content-Type": "application/json"},
"url": "https://www.youtube.com/youtubei/v1/browse?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
"method": "POST", "data": {"context": {...}}
Will use HTTP/3 to query the specified URL with the specified data, method and headers.
Configuration
The port and address can be changed in config.toml, located in the default OS config location.
# Host address to bind to
host = "0.0.0.0"
# Port to listen on
port = 7192
# Amount of workers to process quic requests
open_connections = 5