So it turns out that doing an empty read to check for io.EOF only works with some readers. This fixes that! And improves some of the errors we return to API callers when local media limits have been reached.
This is a partial fix for #3362 which encompasses 2 issues.
Description
So it turns out that doing an empty read to check for io.EOF only works with some readers. This fixes that! And improves some of the errors we return to API callers when local media limits have been reached.
This is a partial fix for #3362 which encompasses 2 issues.
Checklist
go fmt ./...
andgolangci-lint run
.