Article View: news.software.nntp
Article #40533Re: INN maxed? Time to add a Diablo router?
From: Russ Allbery
Date: Tue, 05 Oct 1999 00:00
Date: Tue, 05 Oct 1999 00:00
25 lines
2018 bytes
2018 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: > You have to handle timeouts somehow anyway; you can't just sit forever > in read(). So you use the same mechanism (whether it's poll(), signals, > or SO_RCVTIMEO) to handle shutdown too. Everything I've read on the subject seems to indicate that signals are the last thing you want to try to use in combination with threads under most threading models. For the other two, this is getting into areas of network programming that I don't know well enough to make informed choices (need to sit down and spend quality time with Unix Network Programming and TCP/IP Illustrated at some point). poll() is essentially like select(), yes? I seem to recall having problems before with sockets returning ready to write with select() and then still blocking when one writes to them. What are the advantages of poll() over select() beyond the file descriptor limit thing on Solaris? And I assume SO_RCVTIMEO is a socket option, but that's the only thing I know about it. Where should i look for documentation? -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylso3plcg0.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.mbox.zip!not-for-mailReferences:
<foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu> <37f94ee5$0$7742@news.execpc.com> <7tcv4u$te4$1@nnrp1.deja.com> <brad-0510991640350001@brad.techos.skynet.be> <yl1zb9pmx1.fsf@windlord.stanford.edu> <87k8p1ldpk.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <ylso3plcg0.fsf@windlord.stanford.edu> Subject: Re: INN maxed? Time to add a Diablo router? Date: Tue, 05 Oct 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu> <37f94ee5$0$7742@news.execpc.com> <7tcv4u$te4$1@nnrp1.deja.com> <brad-0510991640350001@brad.techos.skynet.be> <yl1zb9pmx1.fsf@windlord.stanford.edu> <87k8p1ldpk.fsf@erlenstar.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 533241710 Organization: The Eyrie Newsgroups: news.software.nntp