Project

General

Profile

Feature #6559

Set DoNotReverseLookup to true in Webrick

Added by rosenfeld (Rodrigo Rosenfeld Rosas) almost 5 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:45514]

Description

I often find it annoying that it is too slow to test my web applications from VirtualBox because Webrick will try to do reverse lookup and I have set the names directly in the hosts file, so a reverse lookup will always time out.

Also I can't find a simple way for setting this behavior in a global way for all my rubies installed.

Could we please try to improve this behavior? I'm certainly not the first one to complain about this...

webrick.do_not_reverse_lookup.patch View (432 Bytes) drbrain (Eric Hodel), 06/09/2012 08:42 AM


Related issues

Related to Ruby trunk - Bug #13007: Webbrick takes 5s to start when machine name looks like a real domain Closed

Associated revisions

Revision 55881
Added by naruse (Yui NARUSE) 7 months ago

  • lib/webrick/config.rb (WEBrick::Config::General): disable reverse lookup by default. [Feature #6559] Socket.do_not_reverse_lookup is true by default but WEBrick overwrote it. patch by Eric Hodel

History

#1 [ruby-core:45527] Updated by drbrain (Eric Hodel) almost 5 years ago

Here is a patch to disable reverse lookup by default.

I don't think this can be backported to ruby 1.9.3 since it is a behavior change.

#2 [ruby-core:49740] Updated by mame (Yusuke Endoh) over 4 years ago

  • Target version changed from 2.0.0 to next minor

#3 [ruby-core:63351] Updated by rosenfeld (Rodrigo Rosenfeld Rosas) over 2 years ago

Would this be possible to be included in 2.2.0?

#4 [ruby-core:76771] Updated by naruse (Yui NARUSE) 8 months ago

  • Assignee changed from nahi (Hiroshi Nakamura) to naruse (Yui NARUSE)

#5 Updated by naruse (Yui NARUSE) 7 months ago

  • Status changed from Assigned to Closed

Applied in changeset r55881.


  • lib/webrick/config.rb (WEBrick::Config::General): disable reverse lookup by default. [Feature #6559] Socket.do_not_reverse_lookup is true by default but WEBrick overwrote it. patch by Eric Hodel

#6 Updated by shyouhei (Shyouhei Urabe) 4 months ago

  • Related to Bug #13007: Webbrick takes 5s to start when machine name looks like a real domain added

Also available in: Atom PDF