Re: ssl:unrecv for multiprotocol TLS server — why not?

Max Lapshin max.lapshin@REDACTED
Mon Jun 29 16:02:19 CEST 2020


So if I want to make automatic protocol guesser, I need to end up with
some intermediate layer that will be just a proxy?

On Mon, Jun 29, 2020 at 3:49 PM Ingela Andin <ingela.andin@REDACTED> wrote:
>
> Hi Max!
>
> The reason is simply that ssl only implements the officially supported  API of gen_tcp. We might consider some peek functionality in the future  but I very much doubt that unrecv is the way to go.
>
> Regards Ingela Erlang/OTP Team - Ericsson AB
>
> Den mån 22 juni 2020 kl 21:25 skrev Max Lapshin <max.lapshin@REDACTED>:
>>
>> Hi.
>>
>> I want (i need?) to implement different protocols on the same socket.
>>
>> SSL doesn't have unrecv and it will be extremely useful to use it for
>> protocol detection.
>>
>> Is there any reason, why it is not implemented? Just not enough time
>> or there is some reason for it?


More information about the erlang-questions mailing list