johang/btfs

Connections keep open after fusermount

hazcod opened this issue · 6 comments

After a fusermount -u mnt, I can see the connections stay open.
Nethogs output

If you have open files when you unmount, unmont will fail and btfs will keep running. Maybe that's what happened.

I unmounted successully AFAIK

Was the btfs daemon still running?

Sec, retrying. Also, trying to cancel a copy in progress doesn't work.
Yup, btfs not running anymore;
btfs daemon stopped

I suspect the connections you see are half-open or stale TCP connections. I.e. connections that were improperly terminated by btfs on shutdown, and are about to timeout now when the process is dead. If you wait a few minutes they should disappear.

Maybe btfs is missing some call to libtorrent in btfs_destroy to perform a more graceful shutdown.

@johang, so I did this with autofs auto dismount and all connections seem to go away. Sorry for disturbing