Project

General

Profile

Actions

Feature #6559

closed

Set DoNotReverseLookup to true in Webrick

Added by rosenfeld (Rodrigo Rosenfeld Rosas) almost 11 years ago. Updated over 6 years 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...


Files

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

Related issues 1 (0 open1 closed)

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

Updated by drbrain (Eric Hodel) almost 11 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.

Updated by mame (Yusuke Endoh) over 10 years ago

  • Target version changed from 2.0.0 to 2.6

Updated by rosenfeld (Rodrigo Rosenfeld Rosas) almost 9 years ago

Would this be possible to be included in 2.2.0?

Updated by naruse (Yui NARUSE) over 6 years ago

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

Updated by naruse (Yui NARUSE) over 6 years ago

  • Status changed from Assigned to Closed

Applied in changeset r55881.


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

Updated by shyouhei (Shyouhei Urabe) over 6 years ago

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0