You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a file being uploaded is rotated, a race condition in object_put() between opening the stream and calculating the length will cause this function to get stuck in a while loop because it will be trying to read more bytes then exist in the file which this function opens. When this occurs, read will return 0 bytes causing this function to get stuck into a while loop causing the script to peg a single core to 100% cpu.
Thank you very much for your detailed report!
I'm especially grateful to you for having investigated the root cause of this tricky corner case, so that now the fix will be easy.
If a file being uploaded is rotated, a race condition in object_put() between opening the stream and calculating the length will cause this function to get stuck in a while loop because it will be trying to read more bytes then exist in the file which this function opens. When this occurs, read will return 0 bytes causing this function to get stuck into a while loop causing the script to peg a single core to 100% cpu.
s3cmd/S3/Crypto.py
Line 264 in a163fd4
The text was updated successfully, but these errors were encountered: