diff --git a/swift/common/middleware/tempauth.py b/swift/common/middleware/tempauth.py index 8e246a838d..4083a3d945 100644 --- a/swift/common/middleware/tempauth.py +++ b/swift/common/middleware/tempauth.py @@ -666,8 +666,6 @@ class TempAuth(object): req = Request(env) if self.auth_prefix: req.path_info_pop() - req.bytes_transferred = '-' - req.client_disconnect = False if 'x-storage-token' in req.headers and \ 'x-auth-token' not in req.headers: req.headers['x-auth-token'] = req.headers['x-storage-token'] diff --git a/swift/proxy/controllers/obj.py b/swift/proxy/controllers/obj.py index e33d213bb4..eacfe68e9d 100644 --- a/swift/proxy/controllers/obj.py +++ b/swift/proxy/controllers/obj.py @@ -931,7 +931,6 @@ class ReplicatedObjectController(BaseObjectController): ml = req.message_length() if ml and bytes_transferred < ml: - req.client_disconnect = True self.app.logger.warning( _('Client disconnected without sending enough data')) self.app.logger.increment('client_disconnects') @@ -954,7 +953,6 @@ class ReplicatedObjectController(BaseObjectController): except HTTPException: raise except ChunkReadError: - req.client_disconnect = True self.app.logger.warning( _('Client disconnected without sending last chunk')) self.app.logger.increment('client_disconnects') @@ -3228,7 +3226,6 @@ class ECObjectController(BaseObjectController): ml = req.message_length() if ml and bytes_transferred < ml: - req.client_disconnect = True self.app.logger.warning( _('Client disconnected without sending enough data')) self.app.logger.increment('client_disconnects') @@ -3304,7 +3301,6 @@ class ECObjectController(BaseObjectController): self.app.logger.increment('client_timeouts') raise HTTPRequestTimeout(request=req) except ChunkReadError: - req.client_disconnect = True self.app.logger.warning( _('Client disconnected without sending last chunk')) self.app.logger.increment('client_disconnects')