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

Kuba/ssh/simplify connection handler startup #7849

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

u3s
Copy link
Contributor

@u3s u3s commented Nov 9, 2023

  • Simplify ssh_connection_handler init procedure
  • so that process does not operate on Socket until it becomes its owner

@u3s u3s added the team:PS Assigned to OTP team PS label Nov 9, 2023
@u3s u3s self-assigned this Nov 9, 2023
@u3s u3s force-pushed the kuba/ssh/simplify_connection_handler_startup branch 2 times, most recently from 42a576e to e0f494a Compare November 9, 2023 16:23
@u3s u3s linked an issue Nov 9, 2023 that may be closed by this pull request
@u3s u3s added the testing currently being tested, tag is used by OTP internal CI label Nov 9, 2023
@u3s u3s force-pushed the kuba/ssh/simplify_connection_handler_startup branch from e0f494a to bc2dd04 Compare November 9, 2023 16:52
@u3s u3s removed the testing currently being tested, tag is used by OTP internal CI label Nov 9, 2023
@u3s u3s force-pushed the kuba/ssh/simplify_connection_handler_startup branch from bc2dd04 to 053623b Compare November 9, 2023 17:04
@u3s u3s added the testing currently being tested, tag is used by OTP internal CI label Nov 9, 2023
@u3s u3s requested a review from IngelaAndin November 13, 2023 09:18
@u3s u3s force-pushed the kuba/ssh/simplify_connection_handler_startup branch from 053623b to 3c4fa52 Compare November 14, 2023 09:59
@u3s u3s requested a review from IngelaAndin November 14, 2023 10:00
u3s added 4 commits November 17, 2023 11:07
- avoid operating on socket in init function
- during process init ssh_connection_handler does not owe Socket yet
- before that change ssh_connection_handler initialization could fail
  and result with error reports
- above happened if socket creator/original owner exited,
  Socket became unusable and ssh_connection_handler tried to work with
  Socket in init
- this commit postpones Socket use until connection handler becomes
- Socket owner
@u3s u3s force-pushed the kuba/ssh/simplify_connection_handler_startup branch from 3c4fa52 to b164ad5 Compare November 17, 2023 10:08
@u3s u3s merged commit e81d172 into erlang:maint Nov 20, 2023
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.

Possible race condition on socket when calling ssh:connect
2 participants