Skip to content
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

improve HTTP server shutdown #206

Open
xlc opened this issue Oct 29, 2024 · 0 comments
Open

improve HTTP server shutdown #206

xlc opened this issue Oct 29, 2024 · 0 comments

Comments

@xlc
Copy link
Member

xlc commented Oct 29, 2024

2024-10-29T17:35:01+1300 [ cli ] [ NOTICE ] Shutting down... (Boka/Boka.swift:184)
2024-10-29T17:35:01+1300 [ codes.vapor.application ] [ DEBUG ] Application shutting down (Vapor/Application.swift:264)
2024-10-29T17:35:01+1300 [ codes.vapor.application ] [ TRACE ] Shutting down providers (Vapor/Application.swift:266)
2024-10-29T17:35:01+1300 [ codes.vapor.application ] [ TRACE ] Clearing Application storage (Vapor/Application.swift:270)
2024-10-29T17:35:01+1300 [ codes.vapor.application ] [ DEBUG ] Requesting HTTP server shutdown (Vapor/HTTPServer.swift:368)
2024-10-29T17:35:11+1300 [ codes.vapor.application ] [ ERROR ] Could not stop HTTP server: Abort.500: Server stop took too long. (Vapor/HTTPServer.swift:372)
2024-10-29T17:35:11+1300 [ codes.vapor.application ] [ DEBUG ] HTTP server shutting down (Vapor/HTTPServer.swift:374)
2024-10-29T17:35:11+1300 [ codes.vapor.application ] [ TRACE ] Running on shared EventLoopGroup. Not shutting down EventLoopGroup. (Vapor/Application.swift:276)
2024-10-29T17:35:11+1300 [ codes.vapor.application ] [ TRACE ] Application shutdown complete (Vapor/Application.swift:287)
2024-10-29T17:35:11+1300 [ codes.vapor.application ] [ TRACE ] Application deinitialized, goodbye! (Vapor/Application.swift:321)

it shouldn't shutdown by timeout. need to use some Vapor API to close ws

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant