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

Make serve() an async context manager #515

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlaine
Copy link
Contributor

@jlaine jlaine commented Jun 22, 2024

In order to get a clean shutdown of the asyncio-based QUIC server, we need to:

  • Make the QuicServer.close() method async.
  • Make the serve() method an async context manager.

See #513

In order to get a clean shutdown of the asyncio-based QUIC server, we
need to:

- Make the `QuicServer.close()` method async.
- Make the `serve()` method an async context manager.
Copy link

codecov bot commented Jun 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ff3281f) to head (df0a699).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #515   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines         4999      5005    +6     
=========================================
+ Hits          4999      5005    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jlaine
Copy link
Contributor Author

jlaine commented Jun 22, 2024

@rthalley This is a breaking change, so it looks we would need to make the next release 2.0.

@rthalley
Copy link
Contributor

I think clean closing is worth the breaking change.

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

Successfully merging this pull request may close these issues.

2 participants