Time out if we cannot connect to the server within 10 seconds.

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>