9001 / 9001/copyparty

wait for active downloads during shutdown

未關閉
#116 2 則留言 0 個 reaction 已指派 1 人 已被 @9001 認領 在 GitHub 檢視
enhancement
主要語言
Python
星號
46.6k
分支
1.9k
平均合併
10 天 16 小時
30 天內合併 PR
5

描述

currently, during shutdown, all tcp sockets/connections are closed immediately.

consider only closing the listening socket, and let client connections linger for some time, until all active downloads have had a chance to finish.

this would be useful during upgrades; could start shutting down the old instance, then launch the new one, and let the old one expire on its own when ready. But there's a couple things to keep in mind,

* ongoing uploads must be terminated immediately to avoid multiple instances writing into the same target files
* kill background tasks (up2k snapshots/rescans etc.) so they don't trample eachother
* check if there's any interesting opportunities for sqlite deadlocks

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。