wings/router
Dane Everitt fab88a380e Use buffered channels and ring-buffer logic when processing console data
This change fixes pterodactyl/panel#3921 by implementing logic to drop the oldest message in a channel and push the newest message onto the channel when the channel buffer is full.

This is distinctly different than the previous implementation which just dropped the newest messages, leading to confusing behavior on the client side when a large amount of data was sent over the connection.

Up to 10ms per channel is allowed for blocking before falling back to the drop logic.
2022-01-30 10:55:45 -05:00
..
downloader Replace encoding/json with goccy/go-json for cpu and memory usage improvement 2022-01-23 15:17:40 -05:00
middleware router: support the Access-Control-Request-Private-Network header (#117) 2022-01-19 09:27:13 -07:00
tokens Replace encoding/json with goccy/go-json for cpu and memory usage improvement 2022-01-23 15:17:40 -05:00
websocket Use buffered channels and ring-buffer logic when processing console data 2022-01-30 10:55:45 -05:00
error.go break everything 2021-08-02 15:07:00 -06:00
middleware.go break everything 2021-08-02 15:07:00 -06:00
router_download.go break everything 2021-08-02 15:07:00 -06:00
router_server_backup.go break everything 2021-08-02 15:07:00 -06:00
router_server_files.go Add deprecation flag on the directory, don't remove it entirely 2021-08-02 20:15:25 -07:00
router_server_ws.go Replace encoding/json with goccy/go-json for cpu and memory usage improvement 2022-01-23 15:17:40 -05:00
router_server.go Improve power lock logic (#118) 2022-01-23 09:49:35 -08:00
router_system.go Don't turn SSL into lowercase (#114) 2022-01-17 20:22:13 -07:00
router_transfer.go Simplify logic when creating a new installer; no longer requires an entire server object be passed. 2021-08-29 14:08:01 -07:00
router.go Cleanup server sync logic to work in a single consistent format (#101) 2021-08-29 13:37:18 -07:00