commit | 119565acc6f7e275028369a08413e93e1152784c | [log] [tgz] |
---|---|---|
author | Paul Glass <paul.glass@rackspace.com> | Wed Apr 06 11:41:42 2016 -0500 |
committer | Paul Glass <paul.glass@rackspace.com> | Tue May 10 11:25:46 2016 -0500 |
tree | a622b5a1928f61cf0f2144dd6298eceebb51508d | |
parent | aff9cc072bbbb222b09a3411b203c180b493eae8 [diff] |
Improve RestClient rate limiting - Update the RestClient to handle retry-after headers in HTTP-date format (like 'Fri, 31 Dec 1999 23:59:59 GMT'). In this case, it will determine the delay by subtracting the date header from the retry-after header. - Fix a bug in the RestClient.is_absolute_limit function, which was causing the RestClient to incorrectly categorize 413s due to a rate limit as absolute limits. Change-Id: Ia7d0296a807e552f1766264ae4c98a3bbc641306 Closes-Bug: #1566000