(MAINT) This is a workaround to an apparent race we are chasing down. The behavior we are seeing is that after calling hup_server to HUP the server, puppetserver is ready before (at least) the file sync commit endpoint is, so that calls to the helper lib file_sync_commit and/or wait_for_clients_to_sync that hit the commit endpoint immediaely following sometimes, but not always, get an ECONNREFUSED.
(MAINT) This is a workaround to an apparent race we are chasing
down. The behavior we are seeing is that after calling hup_server
to HUP the server, puppetserver is ready before (at least) the file
sync commit endpoint is, so that calls to the helper lib file_sync_commit
and/or wait_for_clients_to_sync that hit the commit endpoint
immediaely following sometimes, but not always, get an ECONNREFUSED.

briancain/puppet-server,puppetlabs/puppetserver,waynr/puppet-server,briancain/puppet-server,waynr/puppet-server,erikPrime/puppet-server,waynr/puppetserver,waynr/puppetserver,rlinehan/puppet-server,puppetlabs/puppet-server,er0ck/puppetserver,rlinehan/puppet-server,camlow325/puppet-server,camlow325/puppet-server,shrug/puppet-server,rlinehan/puppetserver,waynr/puppet-server,erikPrime/puppet-server,puppetlabs/puppetserver,rlinehan/puppetserver,erikPrime/puppetserver,er0ck/puppetserver,shrug/puppet-server,erikPrime/puppet-server,camlow325/puppetserver,erikPrime/puppetserver,waynr/puppetserver,erikPrime/puppetserver,er0ck/puppetserver,camlow325/puppetserver,shrug/puppet-server,briancain/puppet-server,camlow325/puppet-server,puppetlabs/puppet-server,camlow325/puppetserver,shrug/puppet-server,puppetlabs/puppetserver,rlinehan/puppetserver,rlinehan/puppet-server,puppetlabs/puppet-server,rlinehan/puppetserver,camlow325/puppetserver,er0ck/puppetserver,puppetlabs/puppetserver