catch more cruft
This commit is contained in:
parent
5f7b55952c
commit
1ea456360c
1 changed files with 11 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# $Dwarf: article.rb,v 1.78 2003/08/31 20:08:14 ward Exp $
|
# $Dwarf: article.rb,v 1.79 2003/09/23 12:47:54 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -199,7 +199,7 @@ def get_group_info(server)
|
||||||
else
|
else
|
||||||
raise PermError, "#{$!}"
|
raise PermError, "#{$!}"
|
||||||
end
|
end
|
||||||
rescue Errno::EPIPE, Errno::ECONNRESET, EOFError
|
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError
|
||||||
printerr(server)
|
printerr(server)
|
||||||
reconnect(server)
|
reconnect(server)
|
||||||
retry
|
retry
|
||||||
|
|
@ -374,6 +374,9 @@ end
|
||||||
def get_group_body_first(subj)
|
def get_group_body_first(subj)
|
||||||
group_subject_sort(subj)
|
group_subject_sort(subj)
|
||||||
i = 0
|
i = 0
|
||||||
|
unless @groups[subj]["messages"][0]
|
||||||
|
return false
|
||||||
|
end
|
||||||
while @gotten.has_key?(@groups[subj]["messages"][0]) == false
|
while @gotten.has_key?(@groups[subj]["messages"][0]) == false
|
||||||
print "getting article: #{subj}\n" if Debuglevel > 0
|
print "getting article: #{subj}\n" if Debuglevel > 0
|
||||||
print "full subject: #{@groups[subj]["subject"][0]}\n" if Debuglevel > 0
|
print "full subject: #{@groups[subj]["subject"][0]}\n" if Debuglevel > 0
|
||||||
|
|
@ -704,6 +707,12 @@ def printerr(server)
|
||||||
end
|
end
|
||||||
|
|
||||||
def quit
|
def quit
|
||||||
|
# just testing if these should be reset...
|
||||||
|
@messids = []
|
||||||
|
@ids = []
|
||||||
|
@servers = []
|
||||||
|
@subjects = []
|
||||||
|
|
||||||
for server in @connections.keys
|
for server in @connections.keys
|
||||||
begin
|
begin
|
||||||
@connections[server]["nntp"].quit
|
@connections[server]["nntp"].quit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue