Skip to content

Conversation

@coolreader18
Copy link
Contributor

Reviewed well with git diff --color-moved=zebra --color-moved-ws=ignore-space-change.

The first commit splits out parts of process_socket into a new function negotiate_tls, which calls peek_for_sslrequest and handles setting up the TLS connection. It then exposes negotiate_tls, process_message, and process_error as public.

The second commit inlines do_process_socket into process_socket, since it no longer needs to be generic over the type of the socket - that's now in the MaybeTls enum.

@sunng87
Copy link
Owner

sunng87 commented Oct 21, 2025

Awesome! It's really nice to get rid of do_process_socket!

Copy link
Owner

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you! This is much cleaner

@sunng87 sunng87 merged commit b5c0a75 into sunng87:master Oct 21, 2025
10 checks passed
@coolreader18 coolreader18 deleted the expose-server-functions branch October 21, 2025 23:50
@coolreader18
Copy link
Contributor Author

Would you be able to cut a new release with this? This new version should be backwards-compatible.

@sunng87
Copy link
Owner

sunng87 commented Oct 21, 2025

No problem. Released in 0.34.2

@coolreader18
Copy link
Contributor Author

Thank you so much!

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