whois: Cooperate with misbehaving servers.

When the socket is half-closed by the client, then some
remote servers abort connection without a complete reply.
The cause was located and reported by Alexander Zubkov.
This commit is contained in:
Mats Erik Andersson
2014-07-26 16:51:00 +02:00
parent 139c19958e
commit 8bcfbba0d8
3 changed files with 49 additions and 3 deletions

View File

@@ -1285,6 +1285,34 @@ Verbosely explain all actions taken.
@opindex -x
Search only for exact matches.
Applicable only to RPSL.
@end table
@section Environment variables
@anchor{whois environment}
@command{whois} holds an internal list of information servers
and their assigned data bases.
Queries are examined against this list to select the most
plausible server, but the hint can always be overruled on
the command line by use of the option @option{-h}.
If neither of these have a say, then the default server to ask
is @samp{whois.internic.net}, but this name is in turn overruled
by a server name in the environment variable @env{WHOIS_SERVER}.
@table @env
@item LANG
When the server @samp{whois.nic.ad.jp} is queried, and only then,
any non-Japanese locale in @env{LANG} will ask the server to reply
with English text, not Japanese.
@item WHOIS_HIDE
When set, the effect on @command{whois} is as if the
option @option{-H} had been given.
@item WHOIS_SERVER
Data base server to query when internal hinting is inconclusive.
When unset, @samp{whois.internic.net} is used as default server.
@end table