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
Describe the bug
When using async put_object_stream I assume that the stream will be readed part by part as in async mode, but in reality it reads the whole stream to determine the size first. For large files it leads to OOM errors.
To Reproduce
let(mut rx,mut tx) = tokio::io::duplex(65535);// tokio duplex
tokio::spawn(asyncmove{loop{ tx.write_all(&[1,3,4,5,6]).await;}});Bucket::put_object_stream(b,&mut rx,"/123.txt").await;
Expected behavior
Memory is not overflowing, data is written as you go.
Environment
Rust version: 1.69
lib version 0.33.0
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
When using async put_object_stream I assume that the stream will be readed part by part as in async mode, but in reality it reads the whole stream to determine the size first. For large files it leads to OOM errors.
To Reproduce
Expected behavior
Memory is not overflowing, data is written as you go.
Environment
Additional context
The text was updated successfully, but these errors were encountered: