fix max_wait calculation

it should be sleep * retry, same as in Test::TCP, it can not be
max_wait * retry, because max_wait is not defined yet.
fix uninitialized warning if max_wait is not specified
Merge pull request #25 from trinitum/fix-unitialized-warning

Fix unitialized warning