provide a api to set connectionTimeout and socketTimeout