-1 on using sys.maxint.

Also, infinite retries is a bad default anyways. Make it 5 or something.