Commit eafd0f5
committed
fix(nfs): explicitly abort the server JoinHandle on shutdown
`tokio::pin!(server_handle)` plus dropping it at function end does not
cancel a tokio task — the JoinHandle's Drop is a no-op for the underlying
task. The NFS accept loop in `nfsserve::handle_forever()` would keep
running after `mount_nfs` returned, leaking the bound TCP port until
process exit. Caught by codex review on the Windows port PR.
Now: explicit `.abort(); let _ = .await;` in the shutdown sequence.1 parent 10d5740 commit eafd0f5
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
588 | 592 | | |
589 | 593 | | |
590 | 594 | | |
| |||
0 commit comments