Parameterize synchronous socket connection timeout

This allows test environments to have a higher tolerance for delays,
which is necessary in the case of under-powered continuous integration
servers.