Article View: news.software.nntp
Article #67419Re: IHAVE - Accept from nnpt*.savvis.net
From: Russ Allbery
Date: Sat, 13 Dec 2003 19:53
Date: Sat, 13 Dec 2003 19:53
23 lines
2595 bytes
2595 bytes
Curt Welch <curt@kcwc.com> writes:
> My server uses a select loop like inn, and because the DNS routines
> block, I can't use them in my server to do lookups at connect time.
> It's not just a matter of the DNS being a bit slow, if it's told to try
> a large list of non-existant servers, it will hang for many minutes.
> Every time you get a connection from a server with a mis-configured DNS,
> it would hang the entire server for minutes. That can never work. Do
> do DNS you have to either write a non-blocking version of the DNS
> routines (I looked at them and decided they were far to large for me to
> justify that project), or you fork a separte processes to do the DNS
> lookup for you and talk to over a network connection that you can manage
> in your select loop. Doing that has been on my TODO list for a few
> years now for my server.
That's exactly the same situation that INN is in, right down to the
options and the TODO list entry.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87r7z81okr.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in.superfeed.net!tethys.csu.net!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<vtjpe3fkl07e93@corp.supernews.com> <20031213111115.099$IH@newsreader.com> <brfnup$3uc$1@puck.litech.org> <20031213144359.403$wM@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <87r7z81okr.fsf@windlord.stanford.edu> Subject: Re: IHAVE - Accept from nnpt*.savvis.net Date: Sat, 13 Dec 2003 11:53:56 -0800 From: Russ Allbery <rra@stanford.edu> References: <vtjpe3fkl07e93@corp.supernews.com> <20031213111115.099$IH@newsreader.com> <brfnup$3uc$1@puck.litech.org> <20031213144359.403$wM@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in.superfeed.net!tethys.csu.net!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 23 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1071345237 12522 171.64.19.147 (13 Dec 2003 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux) Cancel-Lock: sha1:uCPkvSO5ZfECjoH+PWsJfNGRqZQ=