-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ssl: Use supervisor:which_child/2 to improve start up #9231
ssl: Use supervisor:which_child/2 to improve start up #9231
Conversation
CT Test Results 1 files 11 suites 4m 56s ⏱️ Results for commit 23f2d56. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
1cf9880
to
6ba290e
Compare
e54b690
to
4c805eb
Compare
4c805eb
to
49a7e9a
Compare
49a7e9a
to
23f2d56
Compare
{error, Error} -> | ||
{error, Error} | ||
end. | ||
end; | ||
upgrade(server, Socket, #config{transport_info = CbInfo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come the previous variant of upgrade function worked for server role? did it work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The server upgrade worked, but not using the upgrade function, the server upgrade was implemented directly in ssl.erl calling several functions in tls_socket. It made it harder to understand what was happening and it was asymmetrical to how the client is implemented. When the logic is the same the code should have the same pattern. And also we should keep the related logic in the relevant modules (as we have discussed earlier) We can continue to work on when it makes sense to have client and server separate modules, but it does not make sense in all situations, I think for some modules it makes more sense with a parameter.
No description provided.