Changeset 6597

Show
Ignore:
Timestamp:
02/12/08 15:54:20 (5 years ago)
Author:
cho45
Message:

lang/ruby/chokan/branches/citrus/chokan.rb:

コネクションがきれても retry するように

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/chokan/branches/citrus/chokan.rb

    r6586 r6597  
    3131end 
    3232 
    33 Citrus.run(opts.file) 
     33begin 
     34        count = 60 
     35        Citrus.run(opts.file) 
     36rescue 
     37        warn "Conenction closed... will retry after #{count} sec." 
     38        sleep count 
     39        count *= 2 
     40        retry 
     41end 
    3442