mime/multipart: unable to process bigger parts #33666
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
MJPEG chunks to be read to slurp.
What did you see instead?
I suspect this is due to peekBufferSize is only 4096 bytes:
go/src/mime/multipart/multipart.go
Line 32 in 9b2bd2f
And the single parts of multipart are much longer (few hundreds of kBs)
Would it be possible to make this value configurable for example by adding NewReader method with configurable buffer size?
go/src/mime/multipart/multipart.go
Line 100 in 9b2bd2f
Shall I create a PR?
The text was updated successfully, but these errors were encountered: