d3bff65add7e9d438fff3256e6cf65d3ef3c0c83
The old tokio::select! tore down the whole bridge when EITHER direction's io::copy finished. For a one-way streaming workload the reverse direction carries only the initial HTTP GET; once mpv stops sending and the read half EOFs, the data direction got killed mid- stream and the host logged "bridge closed cleanly" while the user's video disappeared. Spawn the reverse direction as a detached task and `.await` only the data direction. When the data direction ends naturally, abort the reverse task. The function gains Send + 'static bounds on T, which TcpStream satisfies. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided
Languages
Rust
97%
Shell
3%