diff options
author | Tim Burke <tim.burke@gmail.com> | 2018-06-15 11:37:59 -0700 |
---|---|---|
committer | Tim Burke <tim@swiftstack.com> | 2018-12-06 00:25:51 +0000 |
commit | b7e22788607fb1622a5b89ee33051bec843271f8 (patch) | |
tree | e05200ca7da79382a0a0d0e0acd4024c8226ed6c /swift/common/middleware/s3api/s3request.py | |
parent | a883adaa69d51224ec733653aee3bfe19bc53f20 (diff) | |
download | swift-b7e22788607fb1622a5b89ee33051bec843271f8.tar.gz |
Support long-running multipart uploads
S3 docs say:
> Processing of a Complete Multipart Upload request could
> take several minutes to complete. After Amazon S3 begins
> processing the request, it sends an HTTP response header
> that specifies a 200 OK response. While processing is in
> progress, Amazon S3 periodically sends whitespace
> characters to keep the connection from timing out. Because
> a request could fail after the initial 200 OK response has
> been sent, it is important that you check the response
> body to determine whether the request succeeded.
Let's do that, too!
Change-Id: Iaf420983c41256ee9a4c43cfd74025d2ca069ae6
Closes-Bug: 1718811
Related-Change: I65cee5f629c87364e188aa05a06d563c3849c8f3
Diffstat (limited to 'swift/common/middleware/s3api/s3request.py')
-rw-r--r-- | swift/common/middleware/s3api/s3request.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swift/common/middleware/s3api/s3request.py b/swift/common/middleware/s3api/s3request.py index 03894a09e..368d249d8 100644 --- a/swift/common/middleware/s3api/s3request.py +++ b/swift/common/middleware/s3api/s3request.py @@ -1146,6 +1146,7 @@ class S3Request(swob.Request): ], 'PUT': [ HTTP_CREATED, + HTTP_ACCEPTED, # For SLO with heartbeating ], 'POST': [ HTTP_ACCEPTED, |