diff --git a/trunk/ripnews/news/article.rb b/trunk/ripnews/news/article.rb index 30efac6..4a3ee1f 100644 --- a/trunk/ripnews/news/article.rb +++ b/trunk/ripnews/news/article.rb @@ -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$ # @@ -199,7 +199,7 @@ def get_group_info(server) else raise PermError, "#{$!}" end - rescue Errno::EPIPE, Errno::ECONNRESET, EOFError + rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError printerr(server) reconnect(server) retry @@ -374,6 +374,9 @@ end def get_group_body_first(subj) group_subject_sort(subj) i = 0 + unless @groups[subj]["messages"][0] + return false + end while @gotten.has_key?(@groups[subj]["messages"][0]) == false print "getting article: #{subj}\n" if Debuglevel > 0 print "full subject: #{@groups[subj]["subject"][0]}\n" if Debuglevel > 0 @@ -704,6 +707,12 @@ def printerr(server) end def quit + # just testing if these should be reset... + @messids = [] + @ids = [] + @servers = [] + @subjects = [] + for server in @connections.keys begin @connections[server]["nntp"].quit