boris-sinyapkin / lurk

Lightweight implementation of a SOCKS5 proxy built on async Rust
0 stars 0 forks source link

[Feat] Introduce LurkTcpConnection and LurkTcpConnectionFactory #19

Closed boris-sinyapkin closed 7 months ago

boris-sinyapkin commented 7 months ago

This introduces LurkTcpConnection and LurkTcpConnectionFactory under common::net::tcp module. This is a major refactoring / improvement of existing design. Each connection owns backpresure token that is used to control amount of currently connected clients. It's dropped on connection termination. Old "peer" module was removed completely and "handlers" moved to root crate. Peer type was replaced with LurkTcpConnectionLabel.