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

Delegate to :ssl for setopts/2 when transport is tls #84

Merged
merged 3 commits into from
Dec 26, 2024

Conversation

starbelly
Copy link
Contributor

Previously we always called :inet.setopts/2 when a timeout was detected to set {linger, {true, 0}} to immediately tear down the socket before closing the connection. In doing so and in the case of tls the sslsocket structure gets passed to :prim_inet.setopts/2 where the first argument is expected to be a port identifier.

@starbelly starbelly marked this pull request as ready for review November 4, 2024 17:52
@starbelly starbelly force-pushed the delegate-to-ssl-for-setopts branch from 227e1e1 to 1e42e98 Compare December 6, 2024 16:23
Previously we always called `:inet.setopts/2` when a timeout was detected
to set `{linger, {true, 0}}` to immediately tear down the socket before
closing the connection. In doing so and in the case of tls the sslsocket
structure gets passed to `:prim_inet.setopts/2` where the first argument
is expected to be a port identifier.
@starbelly starbelly force-pushed the delegate-to-ssl-for-setopts branch from 7fb2e9f to 0970ffa Compare December 26, 2024 16:28
@vikas15bhardwaj
Copy link
Contributor

should we bump version?

@vikas15bhardwaj
Copy link
Contributor

In WP we are using elixir 1.15.7 version, won't we need to update WP elixir version before using this version of mllp?

@starbelly
Copy link
Contributor Author

In WP we are using elixir 1.15.7 version, won't we need to update WP elixir version before using this version of mllp?

That won't be needed.

@starbelly
Copy link
Contributor Author

should we bump version?

We can do that.

@vikas15bhardwaj
Copy link
Contributor

In WP we are using elixir 1.15.7 version, won't we need to update WP elixir version before using this version of mllp?

That won't be needed.

how does this work? will mllp be compiled to 1.15.7 version within WP?

@vikas15bhardwaj vikas15bhardwaj merged commit f31b4f6 into main Dec 26, 2024
13 checks passed
@starbelly starbelly deleted the delegate-to-ssl-for-setopts branch December 27, 2024 23:42
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.

2 participants