Skip to content

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