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

Refactored the Listener API #139

Merged
merged 1 commit into from
Aug 4, 2020
Merged

Refactored the Listener API #139

merged 1 commit into from
Aug 4, 2020

Conversation

agronholm
Copy link
Owner

@agronholm agronholm commented Aug 1, 2020

This replaces accept() with serve() which in turn obsoletes anyio.serve_listeners() which did not make it into any release.
Among other things, this lets us do the TLS handshake in the newly spawned handler task.

Fixes #125.

@agronholm agronholm added this to the 2.0.0 milestone Aug 1, 2020
@agronholm agronholm force-pushed the listeners branch 2 times, most recently from 9a5e2ac to 51123d2 Compare August 2, 2020 09:02
This replaces accept() with serve() which in turn obsoletes anyio.serve_listeners() which did not make it into any release.
Among other things, this lets us do the TLS handshake in the newly spawned handler task.

Fixes #125.
@agronholm agronholm merged commit c8eba78 into master Aug 4, 2020
@agronholm agronholm deleted the listeners branch August 4, 2020 20:53
mjwestcott pushed a commit to mjwestcott/anyio that referenced this pull request Aug 5, 2020
This replaces accept() with serve() which in turn obsoletes anyio.serve_listeners() which did not make it into any release.
Among other things, this lets us do the TLS handshake in the newly spawned handler task.

Fixes agronholm#125.
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.

TLS server only performs handshake after 'accept' is called
1 participant