mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-02 20:04:43 +00:00
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:
parent
b81ae322d3
commit
a99fc1ba23
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue