Skip to content
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

ipv6_v6only option is not available on R15B and results in {error,einval} #29

Closed
djnym opened this issue Aug 13, 2015 · 3 comments
Closed
Labels

Comments

@djnym
Copy link
Contributor

djnym commented Aug 13, 2015

I happened to be investigating something and discovered this. Since you want to recon to work for R15B02 (at least according to the README), I figured you'd want to know. Most likely you can just move the ipv6_v6only to a different optional part to fix it. If I have a chance I'll submit a pull request with the change.

Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.9.3.1  (abort with ^G)
1>  {ok, P} = gen_udp:open (12111, [ { reuseaddr, true }, {ip, {0,0,0,0}}]).
{ok,#Port<0.824>}
2>  inet:getopts(P,[active, broadcast,buffer,delay_send, dontroute,exit_on_close,header,high_watermark,keepalive,linger, low_watermark, mode, nodelay,packet, packet_size, priority,read_packets, recbuf, reuseaddr,send_timeout, sndbuf]).
{ok,[{active,true},
     {broadcast,false},
     {buffer,8192},
     {dontroute,false},
     {exit_on_close,true},
     {header,0},
     {keepalive,false},
     {linger,{false,0}},
     {mode,list},
     {packet,0},
     {packet_size,0},
     {priority,0},
     {read_packets,5},
     {recbuf,16384},
     {reuseaddr,true},
     {sndbuf,212992}]}
3> inet:getopts(P,[active, broadcast,buffer,delay_send, dontroute,exit_on_close,header,high_watermark,keepalive,linger, low_watermark, mode, nodelay,packet, packet_size, priority,read_packets, recbuf, reuseaddr,send_timeout, sndbuf,ipv6_v6only]).
{error,einval}
4>
@ferd ferd added the bug label Aug 13, 2015
@ferd
Copy link
Owner

ferd commented Aug 13, 2015

I think I'd be fine with just having it taken out altogether, or through some macro or whatever.

@linearregression
Copy link

Do you think add ipv6_v6only only after a pass of run time check of otp release of R15B03 and later is enough?

@ferd
Copy link
Owner

ferd commented Jun 29, 2018

I'ma go ahead and say I won't be supporting R15B03 explicitly anymore. It will be a best-effort thing.

@ferd ferd closed this as completed Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants