Article View: news.software.nntp
Article #84122Re: File descriptor limits.
From: Russ Allbery
Date: Sat, 11 Jun 2011 22:11
Date: Sat, 11 Jun 2011 22:11
41 lines
3188 bytes
3188 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> I'm just wondering: when should DNS requests be done? Every time we
> have to open a socket? (We therefore rely on the DNS cache capability
> of the system so that it does not send the actual request before the
> TTL.)
Yup, that sounds like the right thing to do to me. With DNS, INN has
suffered for years from being a little too smart, when in practice people
already ensure that DNS lookups are relatively fast and are cached. We
still want asychronous lookups, but once we have that, I think doing a
lookup for each incoming connection is quite reasonable.
> I see that libevent handles timeouts. It could be useful at several
> places in our code (client timeout, channels timeout or things like
> that). It also does buffering when sending data. It could also be used
> in lieu of the buffering system in nnrpd for instance.
Yes.
> A bufferevent_openssl library exists… It could be useful for TLS support
> in innd. I assume it solves the problem of synchronizing TLS data
> blocks.
I hope so, and yeah, that would also make things much easier.
> Well, libevent looks pretty promising to use with INN.
> The libevent license allows to redistribute their source code. So we
> basically just have to ship the relevant files in include/libevent? (I
> hope they compile fine with gcc warnings on.)
I would instead recommend requiring people install libevent separately,
rather than including the code inside INN, like we do with other library
dependencies. Linux distributions probably already have separate packages
(Debian does).
--
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:
<87ei30kogh.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!backlog1.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mailReferences:
<ijc6vh$12l$1@snarked.org> <95gqhdFd2hU1@mid.individual.net> <87k4csm9gs.fsf@windlord.stanford.edu> <it0omf$hp5$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87ei30kogh.fsf@windlord.stanford.edu> Subject: Re: File descriptor limits. Date: Sat, 11 Jun 2011 15:11:58 -0700 From: Russ Allbery <rra@stanford.edu> References: <ijc6vh$12l$1@snarked.org> <95gqhdFd2hU1@mid.individual.net> <87k4csm9gs.fsf@windlord.stanford.edu> <it0omf$hp5$1@news.trigofacile.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!backlog1.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 41 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: usenet-its.stanford.edu 1307830318 26759 171.67.225.134 (11 Jun 2011 X-Complaints-To: news@usenet-its.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:Yqp+Uy/g7DjhUmSJfXYP0vRkMPQ= X-Original-Bytes: 2785