server_queuereader: harden connect() against timeouts

With networks that have firewalls involved, all kinds of interesting
things happen.  Make sure the connect() call doesn't get us stuck for a
long time, or (worse) indefinitely.