wait for active downloads during shutdown
未關閉
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 還沒有評估資料。