pub fn shutdown_write(conn: i64) -> Result<(), String>
Half-close: send FIN on the write side (shutdown(SHUT_WR)), keep reading.
shutdown(SHUT_WR)