Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #67
I thought this would be a more scary refactor but recently I was looking under the hood of mint and realized that
:gen_tcp
/:ssl
/:inet
are actually pretty friendly!The basic idea is to do
(or
:inet
for tcp when setting theactive: :once
option)and then you can use those modules are compatible for functions like
send/2
andconnect/4
. I also removed theExtreme.Tcp
module and moved thatconnect
function over toExtreme.Connection
since I think it fits better there now with ssl.This is WIP as I try to figure out a good way to test it. One option is to do what we do in spear and use docker-compose to spin up some containers in CI (like so), but that can be a bit annoying because then you need docker-compose installed locally to test extreme. Maybe it makes sense to tag tests as
@tag :ssl
, exclude them by default, and have a separate Actions workflow for ssl tests? I'll think about it!