matadon/mizuno — pull request #26 by badrij (2012-05-17 02:11:01+00:00)
Title: change the wait_for_server logic to not use decreasing HTTP timeouts

The wait_for_server method currently the the wait-time for the server to start to also function as a Net::HTTP request timeout. This has the odd effect that everytime the you couldn't connect to the server (as it hadn't come up yet), you would error out, and set a smaller timeout upon retry.This seemed odd, as a timeout when connecting to a server should mean that wait a little longer the next time around- not lesser time.

In addition, since the wait-time for the server to start was already controlled by the decrementing counter in Errno::ECONNREFUSED catch block, it seemed not necessary.