Caught Net::NNTP::RuntimeError reading from server news.tilbu1.nb.nl.home.com (get_xhdr)
Error: 503 Program Error or Time Out

better
This commit is contained in:
Ward Wouts 2002-09-09 15:19:22 +00:00
parent a23caa8e48
commit cbabade306

View file

@ -195,6 +195,11 @@ def get_xhdr(server, range, header)
rescue Net::NNTP::RuntimeError
print "Caught Net::NNTP::RuntimeError reading from server #{server} (get_xhdr)\n"
print "Error: #{$!}\n"
if ( $!.to_s =~ /^503/ )
reconnect(server)
get_group_info(server)
retry
end
rescue Errno::EPIPE, Errno::ECONNRESET
print "Caught Errno::EPIPE reading from server #{server} (get_xhdr)\n"
print "Error: #{$!}\n"