mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
d2e73ae6f7414871ad3ad9c9967a00cb0dddc3c3
This commit significantly optimizes the HTTP proxy implementation by: 1. Replacing standard http.ReadRequest with manual HTTP header parsing - Avoids unnecessary allocations from full request parsing - Adds 3-second timeout for initial header reading 2. Removing HttpProxyWriter abstraction - Directly construct and send rewritten Host header - Simplify data forwarding logic 3. Unifying WebSocket and regular HTTP handling - Use single read loop for both cases - Always use buffer pool for reads 4. Adding proper timeouts - Set deadlines for header reading - Reset timeout after headers are processed These changes reduce memory allocations, improve performance, and simplify the proxy logic. Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
rttys
🔗 This is the server component of the rtty project. For complete information please visit the main rtty client repository.
Official Website: https://rttys.net/
📖 About
rttys is the server-side component of the rtty remote terminal system. It provides a web-based management interface and handles connections from rtty clients running on remote devices.
🏗️ Project Structure
This repository contains only the server-side components:
- Server binary: The main rttys server program
- Web UI: Browser-based management interface
- API: RESTful API for device management
⭐ Star History
🤝 Contributing
If you would like to help making rttys better, see the CONTRIBUTING.md file.
Languages
GO
49.1%
Vue
47.9%
Shell
2.6%
Dockerfile
0.4%



