fix: Reduce file upload chunk size to 4k
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 4m42s
Check code formatting / Check-C-Format (push) Successful in 7s
Check code formatting / Check-Python-Flake8 (push) Successful in 10s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s
Run pytests / Check-Pytest (push) Successful in 11s
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 4m42s
Check code formatting / Check-C-Format (push) Successful in 7s
Check code formatting / Check-Python-Flake8 (push) Successful in 10s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s
Run pytests / Check-Pytest (push) Successful in 11s
After seeing occasional memory allocation failures on file upload, reduce chunk size to 4k again. Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
This commit is contained in:
@@ -204,7 +204,7 @@ async def audiofiles_get(request):
|
|||||||
|
|
||||||
|
|
||||||
async def stream_to_file(stream, file_, length):
|
async def stream_to_file(stream, file_, length):
|
||||||
data = array('b', range(16384))
|
data = array('b', range(4096))
|
||||||
bytes_copied = 0
|
bytes_copied = 0
|
||||||
while True:
|
while True:
|
||||||
bytes_read = await stream.readinto(data)
|
bytes_read = await stream.readinto(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user