delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/03/12:15:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.2.20030303085919.028faea8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Mon, 03 Mar 2003 09:08:06 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: "hostname" takes 3.5 seconds
In-Reply-To: <OF74D62281.E9AD858D-ON80256CDE.005B17A0@friendsfirst.ie>
Mime-Version: 1.0

Niall,

This is not directly relevant, but it might hint at or suggest 
something you could investigate.

I found that when I enabled a new network device (a virtual network 
adaptor provided by VMware) that automatic dialing (usually in response 
to a DNS request) no longer caused the dial to be initiated 
immediately. Instead there's a delay of a few seconds before auto-dial 
is initiated.

So perhaps there's something about the configuration of network 
adaptors or your DNS settings that are causing this delay?

Realize that I don't know anything about how the system call(s) 
underlying the primary function of Cygwin's hostname command operate. 
However, if the call were unconditionally extracting local host name 
information there'd be no opportunity for a delay, right?

That brings up another thing. Are you invoking Cygwin hostname or 
Windows hostname? On Win2K, at least, both exist. On my system, both 
respond essentially immediately (I tested only with a dial-in 
connection active).

Randall Schulz


At 08:37 2003-03-03, Niall DOT Smart AT friendsfirst DOT ie wrote:
>Anyone know why calling hostname takes 3.5 seconds?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019