replaced with setConnectTimeout.