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

How to let awc close connection instead of returning it back to connections pool when the remote response error #3574

Open
hengfeiyang opened this issue Feb 11, 2025 · 0 comments

Comments

@hengfeiyang
Copy link

Recording to the issue #3152, i use awc as client to request another actix-web server, in some case the server got error and return 401 or 500, then the client will timeout if we reuse the connection. because the server side never return again on a error connection. but the client didn't know that.

How to let awc force close a connection instead of put it back the pool when the server return 401 or 500?

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