Article View: news.software.nntp
Article #61330Newsx: reducing socket timeout!
From: Raqueeb Hassan
Date: Sat, 12 Oct 2002 02:23
Date: Sat, 12 Oct 2002 02:23
81 lines
3134 bytes
3134 bytes
Hello There!
My newsx with INN is working as usual ... better than suck, sometime.
Now, I don't have consistent link (the adsl link is pretty unstable
here in bangladesh, crappy setup in isp) --- so, it hang sometime
saying socket error alarm for server timeout.
I basically run the newsx from my cron every hour. Now, when there is
a socket error for the disconnected link, i want my newsx should
back-off and exit. the default timeout is 600 sec, but it even takes
longer.
as the manual says ...
-t timeout, --timeout timeout
Specify timeout for TCP/IP and lockfile operations, in
seconds. The default value is 600 where my one is 200.
where else can i tweak, please?
# cat /etc/news/newsx.conf
--rnews
--inn
--locks /var/lock/news
--config
--verify
-t 200
-W 40
-u
-dddd
--inhosts /var/spool/news/in.hosts
#--batch /var/spool/news/articles
--spool /var/spool/news
#--incoming /var/spool/news/incoming
#--history /var/lib/news/history
#--active /var/lib/news/active
--forget-inactive
the status screen for your ananysis ....
sh-2.04$ newsx -ddddd --maxnew 100 news.newsserver.net
newsx: option --inhosts was "/var/spool/news/inhosts", respecified as
"/var/spool/news/in.hosts"
there is no /var/spool/news/in.hosts/news.newsserver.net.conf, just
ignore
state: begin
state: locking host access
created lock: /var/run/news/LOCK.newsx.news.newsserver.net
newsx 1.5pre Sat Oct 12 08:02:59 2002
server: news.newsserver.net, spool: news.newsserver.net
state: read sys
reading /etc/news/newsfeeds
found ME in /etc/news/newsfeeds
found entry for news.newsserver.net in /etc/news/newsfeeds
sys group *
sys group !junk*
sys group !control*
skipping entry for controlchan in /etc/news/newsfeeds
special newsx exclude detected
state: read active
reading /var/lib/news/active
state: locking outgoing spool
created lock: /var/run/news/LOCK.news.newsserver.net
state: open spool
state: rename spool
state: ctlinnd flush
state: read togo
outgoing spool is empty
state: connecting
connecting to 209.35.50.131 port 119
connecting to nntp server at news.newsserver.net
state: await greeting ......
........
thanks in advance.
raqueeb hassan
bangladesh
Technical Details
Message-ID:
<2545b34c.0210111823.1645a41f@posting.google.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.networking.mbox.zip!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <2545b34c.0210111823.1645a41f@posting.google.com> Subject: Newsx: reducing socket timeout! Date: Sat, 12 Oct 2002 02:23:14 +0000 From: raqueebh@yahoo.com (Raqueeb Hassan) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.networking.mbox.zip!archiver1.google.com!postnews1.google.com!not-for-mail Newsgroups: news.software.nntp,comp.os.linux.networking Organization: http://groups.google.com/ Lines: 80 NNTP-Posting-Host: 202.22.199.9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1034389394 25597 127.0.0.1 (12 Oct 2002 02:23:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 12 Oct 2002 02:23:14 GMT