No description
Find a file
Jianhui Zhao c0be2b6caa cleanup HTTP proxy session when device disconnects
Previously, when a device disconnected, the associated HTTP proxy session
remained in the httpProxySessions store, causing a memory leak. This commit
adds a goroutine that monitors the context cancellation and automatically
deletes the session from the store when ctx.Done() is triggered.

This ensures proper cleanup of proxy sessions when devices disconnect,
preventing resource accumulation over time.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-12-04 12:12:24 +08:00
.github update FUNDING 2025-11-09 12:34:31 +08:00
assets refactor http proxy request handling and improve performance 2025-08-12 22:52:00 +08:00
img ui: add support virtual keyboard 2025-07-21 21:18:26 +08:00
log use SPDX-License-Identifier 2025-08-08 19:56:51 +08:00
ui ui: keep term window when the term disconnects. 2025-09-04 09:51:19 +08:00
utils use SPDX-License-Identifier 2025-08-08 19:56:51 +08:00
.gitattributes Add gitattributes 2018-09-08 17:16:04 +08:00
.gitignore Write the HTTP proxy error page to a file 2025-08-12 22:50:33 +08:00
api.go Write the HTTP proxy error page to a file 2025-08-12 22:50:33 +08:00
build-deb.sh Write the HTTP proxy error page to a file 2025-08-12 22:50:33 +08:00
build.sh Write the HTTP proxy error page to a file 2025-08-12 22:50:33 +08:00
command.go use github.com/zhaojh329/rtty-go/proto 2025-08-09 13:54:32 +08:00
config.go use SPDX-License-Identifier 2025-08-08 19:56:51 +08:00
CONTRIBUTING.md chmod 644 2018-03-14 22:37:04 +08:00
CONTRIBUTING_ZH.md chmod 644 2018-03-14 22:37:04 +08:00
device.go Replaced string-based keys with byte arrays for HTTP proxy in sync.Map 2025-08-12 22:50:40 +08:00
Dockerfile Write the HTTP proxy error page to a file 2025-08-12 22:50:33 +08:00
embed.go Write the HTTP proxy error page to a file 2025-08-12 22:50:33 +08:00
go.mod use github.com/zhaojh329/rtty-go/proto 2025-08-09 13:54:32 +08:00
go.sum use github.com/zhaojh329/rtty-go/proto 2025-08-09 13:54:32 +08:00
http.go cleanup HTTP proxy session when device disconnects 2025-12-04 12:12:24 +08:00
LICENSE Change the license information 2019-09-03 14:57:16 +08:00
main.go bump version 5.5.2 2025-08-17 21:34:40 +08:00
README.md update README 2025-10-10 21:31:21 +08:00
rttys.conf Reintroduce TLS support for device listener 2025-08-01 13:13:17 +08:00
rttys.service add a script to create deb package. 2025-07-14 21:57:52 +08:00
rttys_stress_test.go use SPDX-License-Identifier 2025-08-08 19:56:51 +08:00
server.go prevent accidental removal of existing device on duplicate ID conflict 2025-08-14 12:17:11 +08:00
signal_unix.go use SPDX-License-Identifier 2025-08-08 19:56:51 +08:00
signal_windows.go use SPDX-License-Identifier 2025-08-08 19:56:51 +08:00
user.go use github.com/zhaojh329/rtty-go/proto 2025-08-09 13:54:32 +08:00

rttys

license PRs Welcome Issue Welcome Release Version Build Status Go Report Card Downloads Ask DeepWiki

🔗 This is the server component of the rtty project. For complete information please visit the main rtty client repository.

📖 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

Star History Chart

🤝 Contributing

If you would like to help making rttys better, see the CONTRIBUTING.md file.

❤️ Donation