AWS – Amazon CloudFront enables configurable origin connection attempts and origin connection timeouts
Amazon CloudFront now provides you even more control over the connection behaviors between CloudFront and your origin. You can now configure the number of connection attempts CloudFront will make to your origin and the origin connection timeout for each attempt. In addition, the CloudFront origin response timeout range has been expanded and you can now change the value from 1 to 60 seconds, where previously the minimum value was 4 seconds. These two new configurations can be individually set for any type of origin within your CloudFront distribution and can also be used to further enhance the responsiveness and availability of your multi-origin application when coupled with CloudFront Origin Failover.
Read More for the details.