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

Add warning about concurrent requests in HTTP::Client #12527

Conversation

straight-shoota
Copy link
Member

Ref #12412

@@ -58,6 +58,8 @@
# client.close
# ```
#
# WARNING: The implementation of `HTTP::Client` does not support concurrent requests.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should start using some terminology for this. I wonder if this could be understood as "don't use two HTTP::Client concurrently".

Maybe something like "A single HTTP::Client instance does not support concurrent requests"

In Go they use the phase "safe for concurrent use by multiple goroutines", so maybe we should use "(un)safe for concurrent use by multiple fibers", something like that.

@straight-shoota straight-shoota added this to the 1.6.0 milestone Sep 27, 2022
Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @straight-shoota 👍

@straight-shoota straight-shoota merged commit 9849233 into crystal-lang:master Sep 28, 2022
@straight-shoota straight-shoota deleted the docs/http-client-concurrent branch September 28, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants