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

inets: httpd avoid function_clause during startup #7513

Merged

Conversation

u3s
Copy link
Contributor

@u3s u3s commented Jul 26, 2023

  • avoid function_clause httpd_request:body_data/2
  • happening when httpd is stopped during TLS negotiation
  • in such cases Manager process is killed and then continue_init fails

@u3s u3s self-assigned this Jul 26, 2023
@u3s u3s added the team:PS Assigned to OTP team PS label Jul 26, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 26, 2023

CT Test Results

    2 files    21 suites   14m 59s ⏱️
336 tests 331 ✔️ 5 💤 0
561 runs  553 ✔️ 8 💤 0

Results for commit 245b210.

♻️ This comment has been updated with latest results.

@u3s u3s added the testing currently being tested, tag is used by OTP internal CI label Jul 26, 2023
- avoid function_clause httpd_request:body_data/2
- happening when httpd is stopped during TLS negotiation
- in such cases Manager process is killed and then continue_init fails
@u3s u3s force-pushed the kuba/inets/httpd_function_clause/OTP-18688 branch from 074c707 to 245b210 Compare July 26, 2023 14:41
case Result of
error ->
httpd_util:error_log(ConfigDB,
httpd_logger:error_report('TLS', Status,
Copy link
Contributor

Choose a reason for hiding this comment

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

It is not known at this point that it is a 'TLS' socket. The other atom used in this module, in this argument position would be internal.

@RaimoNiskanen RaimoNiskanen merged commit 347ee2f into erlang:maint Jul 28, 2023
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 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.

None yet

3 participants