From: michael@... Date: 2016-12-05T05:44:10+00:00 Subject: [ruby-core:78492] [Ruby trunk Bug#13007] Webbrick takes 5s to start when machine name looks like a real domain Issue #13007 has been reported by Michael Grosser. ---------------------------------------- Bug #13007: Webbrick takes 5s to start when machine name looks like a real domain https://bugs.ruby-lang.org/issues/13007 * Author: Michael Grosser * Status: Open * Priority: Normal * Assignee: * ruby -v: 2.3.3 * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- 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 -- https://bugs.ruby-lang.org/ Unsubscribe: