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

Problem: SIGTERM does not close the connection immediately #1

Open
laurenceisla opened this issue Oct 13, 2022 · 0 comments
Open

Problem: SIGTERM does not close the connection immediately #1

laurenceisla opened this issue Oct 13, 2022 · 0 comments

Comments

@laurenceisla
Copy link
Owner

Right now, the program waits for a request to be made in order to break from the infinite loop. Needs a better implementation, like the suggestions mentioned in https://tokio.rs/tokio/topics/shutdown.

Relevant line of code:

https://github.com/laurenceisla/pgx_demo/blob/2ba2f84614beb00fcd870d7a0cf6e85200374e81/src/web_server_async.rs#L27-L29

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