If I remember correctly, I was trying to avoid the raise that happens when the request_ref does not belong to the conn. I think since this block was written we've refactored the connection to successfully curate its set of open request_refs, so we never end up calling safe_get_request_window_size/2 with an unknown request_ref.
In the spirit of https://github.com/elixir-mint/mint/issues/333, we should remove this
conn.ref_to_stream_id
access since that field is part of the opaquet:Mint.HTTP2.t/0
If I remember correctly, I was trying to avoid the raise that happens when the
request_ref
does not belong to theconn
. I think since this block was written we've refactored the connection to successfully curate its set of openrequest_ref
s, so we never end up callingsafe_get_request_window_size/2
with an unknownrequest_ref
.