[erlang-bugs] inet:setops manual: {priority, Integer} is documented twice

Loïc Hoguin essen@REDACTED
Tue Aug 18 00:40:57 CEST 2015


http://www.erlang.org/doc/man/inet.html#setopts-2

I think it refers to the same option, but as I am not sure what this 
option does *exactly* I'm reporting a bug rather than fixing it.

First time it mentions the option it says:

{priority, Priority}
     Set the protocol-defined priority for all packets to be sent on 
this socket.

Second time:

{priority, Integer}
     Sets the SO_PRIORITY socket level option on platforms where this is 
implemented. The behaviour and allowed range varies on different 
systems. The option is ignored on platforms where the option is not 
implemented. Use with caution.

Second one sounds better though it's probably good to add it's for all 
packets sent on this socket.

Cheers,

-- 
Loïc Hoguin
http://ninenines.eu
Author of The Erlanger Playbook,
A book about software development using Erlang



More information about the erlang-bugs mailing list