Skip to content

Support ranch 2.1 #148

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davydog187
Copy link

This was an attempt to try to support ranch 2.1. I don't have enough time to keep going on this at the moment, so pushing it up in case someone else does

  • Implement a Transport module to replace :socket in transport opts

From the 1.7 -> 2.0 changelog

The socket option was removed. A more viable solution is to define a custom transport module that returns a fresh socket when Transport:listen/1 is called.

  • Find a way to conditionally send socket opts under a key

Closes #119

This was an attempt to try to support ranch 2.1. I don't have enough
time to keep going on this at the moment, so pushing it up in case
someone else does

- [ ] Implement a Transport module to replace `:socket` in transport opts

From the [1.7 -> 2.0 changelog](https://ninenines.eu/docs/en/ranch/2.1/guide/migrating_from_1.7/)
> The socket option was removed. A more viable solution is to define a custom transport module that returns a fresh socket when Transport:listen/1 is called.

- [ ] Find a way to conditionally send socket opts under a key
@codeadict
Copy link

@davydog187 I tried this too but the issue is that you cannot pass the socket anymore to ranch so Plug.Cowboy fails. Happy to pair, try to find a workaround for this

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.

Any support for ranch 2.x?
2 participants