-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Should client::conn::http2::SendRequest be Clone? #3036
Comments
Hm, probably yes. It should also likely internally use the |
This should probably extend to h1 as well? |
h1 can't send multiple requests concurrently. |
Right but there is a buffer in-front of the sending task so imo we should model the api like that even if it doesn't send them concurrently? |
I don't believe the h1 side has much of a buffer... I think only a slot of 1, where the |
@seanmonstar so for a thick client, the idea will be that it will add that clone portion on top of the h1 portion to make the h1 and h2 api's match? That was my concern was that these two very (same named) similar types have different implementations. |
If a client wanted to serialize requests over the single connection, they could. What I don't think at the |
Should
hyper::client::conn::http2::SendRequest
beClone
, just likeh2::client::SendRequest
?The text was updated successfully, but these errors were encountered: