Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 1995 22:07:03 -0700
From:      Peter Wemm <peter>
To:        CVS-commiters, cvs-usrbin
Subject:   cvs commit: src/usr.bin/w w.c
Message-ID:  <199507180507.WAA09104@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
peter       95/07/17 22:07:03

  Modified:    usr.bin/w  w.c
  Log:
  When 'w' finds an IP address in the ut_host field, it attempts to do
  a gethostbyname() on it.  That can take a long time...  (especially
  if the reason the IP address is in there in the first place is because
  login/rlogind/telnetd couldn't find it either....)
  This patch reduces the gethostbyaddr lookup time to 2 seconds, the idea being
  that if the local nameserver knows the answer, it'll answer within that time,
  otherwise we dont care... :-)
  This change doesn't do anything about whether or not w should do this in the
  first place, but at least it will make the current behavior less painful.
  Reviewed by:	David Greenman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507180507.WAA09104>