handle:
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:
parent
a23caa8e48
commit
cbabade306
1 changed files with 5 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue