Add connect timeout and config option to set it.