Rewriting entry_is_time_to_retry() using table approach.
Write comments for members of periods array.
Unit testing entry_is_time_to_retry().
Small cleanups to test_entry_is_time_to_retry
Whitespace fixes
Merge branch 'bug12205_take2_squashed'