Commit Graph

4 Commits

Author SHA1 Message Date
03f3fc5420 fix: restore websocket connection handling and reconnection logic 2024-12-18 02:09:37 +00:00
55d7eedd0e feat: add AsyncReader/AsyncWriter buffered I/O wrappers and Socket class in app.py
Introduces AsyncReader and AsyncWriter classes that wrap asyncio reader/writer pairs with configurable buffer sizes and chunked write draining. Also adds a Socket class combining both wrappers for unified stream handling. These changes support more granular control over network I/O in high-latency environments.
2024-12-18 01:42:16 +00:00
a85433df6e feat: add initial project scaffold with Makefile, pyproject.toml, setup.cfg, and CLI entry point
Create the foundational project structure for the zamenyat HTTP content replacement bridge, including a Makefile with targets for environment setup, installation, formatting, and building; a pyproject.toml declaring setuptools as the build backend; a setup.cfg with package metadata, dependencies on the internal app library, and a console_scripts entry point; a README.md with a corrected heading and project description; a __main__.py module implementing argument parsing for host, port, upstream-host, and upstream-port; and an app.py module defining the Application class with async header parsing, connection tracking, and configurable buffer/header size constants.
2024-12-17 21:49:51 +00:00
c74422583b feat: add initial project scaffolding with .gitignore, MIT license, and README
Introduce the foundational project structure for zamenyat, an HTTP bridge for content replacement. The .gitignore excludes Python bytecode, build artifacts, virtual environments, and IDE files. The LICENSE file applies the MIT license with copyright assigned to retoor. The README describes the project as a configurable HTTP bridge enabling content substitution, such as serving real and anonymous versions of a website.
2024-12-17 18:27:09 +00:00