-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: There are bugs within the graceful shutdown
process of many HTTP server backends that can cause the process to hang.
#2
Comments
salvo (fixed and released in v0.67.2 - 已修复并发布于v0.67.2): |
poem (fixed and released in v3.0.0 - 已修复并发布于v3.0.0): |
|
axum (fixed but not released): This is actually a lower-level The following bug has been fixed (24.05.09), and the patch has been returned to the current HEAD version: When both axum(已修复但未发布): 这个其实是更底层的 以下bug已修复(24.05.09),patch已回到当前的HEAD版本上: 当 |
|
warp (not fixed): This is very similar to the Axum bug above, but the solution using the patch warp(未修复): 这个跟上面Axum的bug非常像,但用Axum提供的patch |
viz (fixed but not released): This bug is almost 100% the same as the above-mentioned axum bug, so I won’t go into details again and wait for the release. viz(已修复但未发布): 这个bug跟上述axum的bug几乎100%一样,因此不再赘述,等待发版。 |
|
graceful shutdown
process of many HTTP server backends.graceful shutdown
process of many HTTP server backends that can cause the process to hang.
备注:有很多HTTP服务器后端的“优雅停机”过程都存在会使进程卡死的bug。
This issue will list the associated issues or PRs for each buggy backend one by one. They may have been solved and released, or solved but not yet released, or not yet resolved. The main purpose of this issue is to serve as a reminder.
For backends with unfixed or unreleased bugs, we will provide temporary workarounds (through
tokio::task::AbortHandle::abort()
). But when the bug is finally fixed and released, the workaround should be removed and updated to the official implementation.This issue will be closed when all backend hang bugs are fixed and released.
Summary of current status:
warp
backend is waiting for fix[1] and cannot work properly, and there is no perfect workaround solution, so the backend is temporarily removed[2] (it will be restored after the upstream fix).axum
andviz
backends have been fixed and are waiting for release. They can work normally aftercargo update
. The version number will be updated after the release.salvo
,poem
,actix-web
,rocket
,ntex
) may or may not have had bugs in the past, but in short they are currently working fine.本issue将逐一列举每个存在bug的后端的关联issue或pr,它们可能是已解决并发布的,或已解决但尚未发布的,或尚未解决的。本issue的主要目的是备忘。
对于存在未修复或未发布的bug的后端,我们会对其提供临时性的workaround(通过
tokio::task::AbortHandle::abort()
)。但是当最终bug被修复并发布后,workaround应当被移除并更新为正式的实现。当所有后端的hang bug都修复并发布后,这个issue将会被关闭。
当前状态总结:
warp
后端正在等待修复[1],无法正常工作,且没有完美Workaround方案,因此暂时移除了该后端[2](等上游修复后恢复)。axum
和viz
后端已修复正在等待发版,cargo update
后可以正常工作,待发版后更新版本号。salvo
,poem
,actix-web
,rocket
,ntex
)可能曾经有bug,可能一直没有,但总之它们目前工作正常。The text was updated successfully, but these errors were encountered: