give up sooner

This commit is contained in:
Ward Wouts 2004-06-02 21:19:04 +00:00
parent 63d56b1f2f
commit 2dbb3499e9

View file

@ -1,4 +1,4 @@
# $Dwarf: article.rb,v 1.82 2004/06/02 21:05:08 ward Exp $ # $Dwarf: article.rb,v 1.83 2004/06/02 21:07:29 ward Exp $
# $Source$ # $Source$
# #
@ -186,6 +186,7 @@ end
def get_group_info(server) def get_group_info(server)
timedout = 0 timedout = 0
errs = 0
resp = "" resp = ""
first = "" first = ""
last = "" last = ""
@ -203,6 +204,7 @@ def get_group_info(server)
end end
rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError, Errno::EINVAL rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError, Errno::EINVAL
printerr(server) printerr(server)
raise PermError, "Too many errors! (get_group_info)" if errs > 3
reconnect(server) reconnect(server)
retry retry
end end