[erlang-questions] Bug? inet:listen_options discards extra raw options?

Roger Lipscombe roger@REDACTED
Tue Mar 25 17:55:29 CET 2014

I'm attempting to pass a bunch of raw options to ssl:listen, in order
to configure TCP keep-alive behaviour.

When I run strace, I see only one setsockopt call corresponding to
only one of my raw options.

Upon further investigation, I see the following:

(<0.198.0>) call inet:listen_options([{port,0},
(<0.198.0>) returned from inet:listen_options/2 -> {ok,

It appears that inet:listen_options/2 is throwing away my extra raw
options. Is this expected behaviour, or is it a bug?

R16B03 on Linux, by the way.


More information about the erlang-questions mailing list