diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-06-19 18:40:22 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-06-19 18:51:33 +0200 |
commit | a1355917ecf75e1f1f37101505a351743d590121 (patch) | |
tree | 4b264aa627842d5d420ee6f7b8fe18b61402494f /src/nix | |
parent | 82a0d614cf17b2997ba5f895c1db4c2cde41e88d (diff) |
Disable use of virtual hosting in aws-sdk-cpp
Recently aws-sdk-cpp quietly switched to using S3 virtual host URIs
(https://github.com/aws/aws-sdk-cpp/commit/69d9c53882), i.e. it sends
requests to http://<bucket>.<region>.s3.amazonaws.com rather than
http://<region>.s3.amazonaws.com/<bucket>. However this interacts
badly with curl connection reuse. For example, if we do the following:
1) Check whether a bucket exists using GetBucketLocation.
2) If it doesn't, create it using CreateBucket.
3) Do operations on the bucket.
then 3) will fail for a minute or so with a NoSuchBucket exception,
presumably because the server being hit is a fallback for cases when
buckets don't exist.
Disabling the use of virtual hosts ensures that 3) succeeds
immediately. (I don't know what S3's consistency guarantees are for
bucket creation, but in practice buckets appear to be available
immediately.)
Diffstat (limited to 'src/nix')
0 files changed, 0 insertions, 0 deletions