Project

General

Profile

Actions

Feature #1811

closed

Default BasicSocket.do_not_reverse_lookup to true

Feature #1811: Default BasicSocket.do_not_reverse_lookup to true

Added by rogerdpack (Roger Pack) over 16 years ago. Updated over 14 years ago.

Status:
Closed
Target version:
-
[ruby-core:24530]

Description

=begin
Currently ruby socket code defaults to always doing reverse DNS lookup
[ex: once per incoming UDP packet, once per TCP connection].

This causes "surprising" pauses if lookup fails, because the DNS
waits 15s to timeout, before passing the packet back to the program,
the pauses are surprising, not appropriate for production, cause bugs[1] and cause an overly chatty network.

Proposal is: default do_not_reverse_lookup to true and/or change name to do_reverse_lookup= to avoid double negative.

See discussions:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/24247
http://www.ruby-forum.com/topic/190013

Thanks.
=r
[1] http://www.ruby-forum.com/topic/191022
=end


Files

do_not_reverse_lookup.diff (367 Bytes) do_not_reverse_lookup.diff rogerdpack (Roger Pack), 10/10/2009 01:00 AM

Related issues 1 (0 open1 closed)

Related to Ruby - Bug #496: DRb.start_service(nil) is very slowClosedseki (Masatoshi Seki)Actions
Actions

Also available in: PDF Atom