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

fix(test_server): deprecated ssl_accept #48

Merged
merged 1 commit into from
May 25, 2022

Conversation

victorolinasc
Copy link
Contributor

OTP 21 deprecated the :ssl.ssl_accept/3 function. So, we add a
compile check to determine which function to call. This library
supports Elixir 1.5 and so the OTP support must be present up to OTP 18.

@victorolinasc
Copy link
Contributor Author

This was breaking on OTP 24 for the test_server mix task :)

@voltone
Copy link
Owner

voltone commented May 25, 2022

Thanks for that, and sorry for the delay. I would actually prefer to avoid apply/3, and instead define a private function that calls either accept or handshake (like here). What do you think?

@victorolinasc
Copy link
Contributor Author

Fine for me :) Will update accordingly.

OTP 21 deprecated the `:ssl.ssl_accept/3` function. So, we add a
compile check to determine which function to call. This library
supports Elixir 1.5 and so the OTP support must be present up to OTP 18.
@victorolinasc
Copy link
Contributor Author

Updated!

@voltone
Copy link
Owner

voltone commented May 25, 2022

Updated!

Excellent. Thanks!

Will merge and publish 0.8.5 now.

@voltone voltone merged commit 8730c48 into voltone:master May 25, 2022
@victorolinasc victorolinasc deleted the fix/deprecated_ssl_accept branch May 25, 2022 15:52
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