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

Rename Connection to Protocol. #1269

Merged
merged 1 commit into from Nov 27, 2022
Merged

Rename Connection to Protocol. #1269

merged 1 commit into from Nov 27, 2022

Conversation

aaugustin
Copy link
Member

This makes the following naming possible:

  • Connection = TCP/TLS connection + pointer to protocol; concerned with opening the network connection, moving bytes, and closing it.
  • Protocol = Sans-I/O protocol; concerned with parsing and serializing messages and with the state of the connection.

Previously, these names were reversed in the sockets & threads branch.

The previous choice was influenced by the legacy implementation using "protocol" to describe the two layers together, itself influenced by asyncio using the same word.

This makes the following naming possible:

* Connection = TCP/TLS connection + pointer to protocol; concerned with
  opening the network connection, moving bytes, and closing it.
* Protocol = Sans-I/O protocol; concerned with parsing and serializing
  messages and with the state of the connection.

Previously, these names were reversed in the sockets & threads branch.

The previous choice was influenced by the legacy implementation using
"protocol" to describe the two layers together, itself influenced by
asyncio using the same word.
aaugustin added a commit to aaugustin/sanic that referenced this pull request Nov 27, 2022
aaugustin added a commit to aaugustin/sanic that referenced this pull request Nov 27, 2022
@aaugustin aaugustin merged commit f5ea94a into main Nov 27, 2022
@aaugustin aaugustin deleted the move-sans-io branch November 27, 2022 18:41
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.

None yet

1 participant