-
Notifications
You must be signed in to change notification settings - Fork 224
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
[design] remove QuicConnectionProtocol.create_stream() ? #169
Comments
I also believe
maybe also an API to send data without accessing
The API will be used like:
I think everyone will follow the logic from |
Please don't remove this. I just added quic support to ntunnel and am using them. It save the work of having to demux the data, and makes using this integrate nicely with programs that are already designed to use asyncio.open_connection (https://docs.python.org/3/library/asyncio-stream.html#asyncio.open_connection) |
I still plan to remove these APIs from the base protocol, as they are clunky, create confusion and are only needed for very specific cases. Would you might submitting a PR moving them to an example? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The
QuicConnectionProtocol.create_stream()
method was added to the API early on in the project to provide a way to create a raw pair of reader / writers. However, I have since realised that this is a very niche case, none of the examples use this API. It is more powerful to tap into thequic_event_received()
callback.Similarly the following should probably go:
stream_handler
argument toclient.connect()
stream_handler
argument toserver.listen()
The text was updated successfully, but these errors were encountered: