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

feat: start-link gun process #52

Merged
merged 1 commit into from
Dec 15, 2023
Merged

feat: start-link gun process #52

merged 1 commit into from
Dec 15, 2023

Conversation

zmstone
Copy link
Member

@zmstone zmstone commented Dec 14, 2023

  • Upgrade to gun 1.3.10 (OTP 26)
  • Changed from gun:open to gun:start_link to start the gun process.
    This makes the gun process linked to ehttpc process (instead of gun_sup).
    Prior to this change, some early errors causing gun process to crash might not be able to be caught by ehttpc due to the slow monitoring.
    e.g. when some SSL option is invalid, the gun process will crash immediately and ehttpc can only get a noproc error reason from the delayed process monitor.

@zmstone zmstone requested a review from a team December 14, 2023 22:22
end
)
end},
{timeout, 20, fun() ->
Copy link
Member Author

Choose a reason for hiding this comment

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

this test is removed because OTP 26 no longer checks timeout arg validity.
it crashes in inet module.

@zmstone zmstone force-pushed the 1214-start-link-gun-process branch from 6b93d5e to aa499dc Compare December 14, 2023 22:24
@zmstone
Copy link
Member Author

zmstone commented Dec 14, 2023

need this for dialyzer: emqx/gun#7

@zmstone zmstone force-pushed the 1214-start-link-gun-process branch from 5230a53 to ad87094 Compare December 15, 2023 08:42
@zmstone zmstone merged commit 955fd45 into main Dec 15, 2023
2 checks passed
@zmstone zmstone deleted the 1214-start-link-gun-process branch December 15, 2023 09:12
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.

3 participants