Bach Le
Bach Le
This is interesting, I'll see if I can help. How should it be done? - `cowboy_router:construct_uri("/users/:id", #{id => 30})` is nice but routes have to be reparsed. - `cowboy_router:construct_uri(Req, user_route,...
I didn't know you can change route dynamically. I guess it's possible since it's just an environment. But IIRC the cowboy doc already said that one should use `ranch:set_protocol_option/2` to...
Just want to chime in. Is this better handled at a higher level? You can checkout the worker and then give it some "initialization" parameters for example.
I am having a very strange bug while using ssl with PROXY protocol. The ssl process hangs in waiting while the controlling_process is already dead. As a result, the underlying...
OTP-23, cowboy 2.9.0. The app was built based on `erlang:23-alpine` image. I can reliably trigger this by: 1. Setup ssl in cowboy with `proxy_header => true` 2. Connect directly with...
This is clearly an OTP bug, if controlling_process, dies, the ssl process should die too. Still, I think ranch should work around this in mean time. ~~I wonder if a...
Filed a bug with OTP: https://github.com/erlang/otp/issues/5239
Back to ranch, IMO, the cleanest fix would be to listen on gen_tcp and upgrade with ssl:handshake and force options to be separate: `{tcp => TcpOpts, ssl => SslOpts}`. This...
There's also another way: hardcode a list of ssl options. There are not that many... We can filter at runtime. Alternatively, I think it's possible to extract the type definition...