Actions
Feature #11700
openpositive 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_lookup
BasicSocket.reverse_lookup=
BasicSocket#reverse_lookup
BasicSocket#reverse_lookup=
These methods share the same flags with do_not_reverse_lookup
, just invert input/output values.
Updated by normalperson (Eric Wong) about 9 years ago
nobu@ruby-lang.org wrote:
Now
BasicSocket
hasdo_not_reverse_lookup
global and per-socket attributes.
Negative flag makes less readability.
So I propose the inverse and positive attributes,
BasicSocket.reverse_lookup
BasicSocket.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
Like0
Like0