Add configurable timeout for curl connections