Project

General

Profile

Actions

Bug #13007

closed

Webbrick takes 5s to start when machine name looks like a real domain

Added by grosser (Michael Grosser) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:78492]

Description

sudo scutil --set HostName foo.local
ruby -r socket -e "Socket.gethostbyname(Socket.gethostname)"

or much simpler:

ruby -r socket -e "Socket.gethostbyname('foo.local')"

called from webrick/config.rb:24 ... Utils::getservername

Ideally this should be lazy, so I can override ServerName and avoid this ...
or not do a remote lookup at all by default


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #6559: Set DoNotReverseLookup to true in WebrickClosednaruse (Yui NARUSE)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0