Improve curl hangs by defining the maximum amount of time allowed per try.
This change came about because curl to some servers during whitelist processing caused an indefinite hang due a connection-timeout without receiving an error from the upstream server.