switched to max-time instead of connect-timeout for Curl calls