Replies: 1 comment 1 reply
-
The future is cancelled when the connection closes. If you want it to survive, you need to use something like You can use channels to pass around information and a drop guard in the handler to signal that the future has been dropped and the request cancelled. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Need help.
I tried all popular rust http framework, but it seems no one can handle the clientside closing the connection.
what I want to do is restore the data change when user close the request.
Is there any way I can achieve this.
axum version
0.7.3
Beta Was this translation helpful? Give feedback.
All reactions