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

ssl: Use supervisor:which_child/2 to improve start up #9231

Conversation

IngelaAndin
Copy link
Contributor

No description provided.

@IngelaAndin IngelaAndin requested review from dgud and u3s December 20, 2024 15:33
@IngelaAndin IngelaAndin self-assigned this Dec 20, 2024
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Dec 20, 2024
Copy link
Contributor

github-actions bot commented Dec 20, 2024

CT Test Results

  1 files   11 suites   4m 56s ⏱️
 93 tests  91 ✅ 2 💤 0 ❌
109 runs  107 ✅ 2 💤 0 ❌

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

@IngelaAndin IngelaAndin force-pushed the ingela/ssl/use-which_child-to-improve-start-up/OTP-19406 branch 4 times, most recently from 1cf9880 to 6ba290e Compare December 23, 2024 11:31
u3s
u3s previously approved these changes Dec 23, 2024
@IngelaAndin IngelaAndin added the testing currently being tested, tag is used by OTP internal CI label Dec 28, 2024
@IngelaAndin IngelaAndin requested a review from u3s January 3, 2025 09:10
@IngelaAndin IngelaAndin force-pushed the ingela/ssl/use-which_child-to-improve-start-up/OTP-19406 branch from e54b690 to 4c805eb Compare January 3, 2025 10:26
@IngelaAndin IngelaAndin force-pushed the ingela/ssl/use-which_child-to-improve-start-up/OTP-19406 branch from 4c805eb to 49a7e9a Compare January 7, 2025 08:43
@IngelaAndin IngelaAndin removed the testing currently being tested, tag is used by OTP internal CI label Jan 7, 2025
u3s
u3s previously approved these changes Jan 7, 2025
@IngelaAndin IngelaAndin added the testing currently being tested, tag is used by OTP internal CI label Jan 7, 2025
@IngelaAndin IngelaAndin force-pushed the ingela/ssl/use-which_child-to-improve-start-up/OTP-19406 branch from 49a7e9a to 23f2d56 Compare January 8, 2025 08:12
@IngelaAndin IngelaAndin requested a review from u3s January 8, 2025 08:56
{error, Error} ->
{error, Error}
end.
end;
upgrade(server, Socket, #config{transport_info = CbInfo,
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@IngelaAndin IngelaAndin merged commit ab37756 into erlang:master Jan 9, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants