Feature #6559
closed
Set DoNotReverseLookup to true in Webrick
Added by rosenfeld (Rodrigo Rosenfeld Rosas) over 12 years ago.
Updated over 8 years ago.
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
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.
- Target version changed from 2.0.0 to 2.6
Would this be possible to be included in 2.2.0?
- Assignee changed from nahi (Hiroshi Nakamura) to naruse (Yui NARUSE)
- 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]
- Related to Bug #13007: Webbrick takes 5s to start when machine name looks like a real domain added
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0