shadowsocks / shadowsocks-rust

A Rust port of shadowsocks
https://shadowsocks.org/
MIT License
8.69k stars 1.18k forks source link

fix: flush local-tun tcp writer half before close #1759

Closed AzazKamaz closed 1 week ago

AzazKamaz commented 2 weeks ago

I do not really know if we also need to flush other direction as well... Also not really sure that we should keep it opened after TcpSocketState::Close state - for example when we drop() it this will add unknown delay for writing buffers or failing