Actions
Feature #11700
openpositive flags for reverse lookup to socket
Feature #11700:
positive flags for reverse lookup to socket
Status:
Open
Assignee:
-
Target version:
-
Description
Now BasicSocket has do_not_reverse_lookup global and per-socket attributes.
Negative flag makes less readability.
So I propose the inverse and positive attributes,
BasicSocket.reverse_lookupBasicSocket.reverse_lookup=BasicSocket#reverse_lookupBasicSocket#reverse_lookup=
These methods share the same flags with do_not_reverse_lookup, just invert input/output values.
Updated by normalperson (Eric Wong) almost 10 years ago
nobu@ruby-lang.org wrote:
Now
BasicSockethasdo_not_reverse_lookupglobal and per-socket attributes.
Negative flag makes less readability.
So I propose the inverse and positive attributes,
BasicSocket.reverse_lookupBasicSocket.reverse_lookup=
I prefer we skip these globals and deprecate the existing global ones.
(and maybe even deprecating per-socket).
It's a complete performance killer to enable reverse lookup and nobody
should be doing it for every socket.
Actions