News timeout

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@55 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-03-30 23:25:36 +00:00
parent b81ae322d3
commit a99fc1ba23

View file

@ -17,9 +17,10 @@ class NntpUrlData(HostCheckingUrlData):
def checkConnection(self, config):
if not config["nntpserver"]:
self.setWarning("No NNTP server specified, checked only syntax")
# only connect once
config.connectNntp()
nntp = config["nntp"]
import time
time.sleep(10)
resp,count,first,last,name = nntp.group(self.host)
self.setInfo("Group %s has %s articles, range %s to %s" % \
(name, count, first, last))