limit retry five times
Merge pull request #459 from devton/master

limit retry five times