On 9/19/16 11:59 AM, Chris wrote:
On Thursday, 15 September 2016 at 13:26:48 UTC, Steven Schveighoffer wrote:
On 9/15/16 9:11 AM, Chris wrote:
On Wednesday, 14 September 2016 at 20:23:09 UTC, Steven Schveighoffer
wrote:


Hm.. I have adjusted this in my project, and it works (set to 50M).
Needed it for uploading large images.

Using version 0.7.29


It doesn't seem to make any difference in my case. I wonder what could
be wrong

Seems to be in use:

https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/http/server.d#L1832



Finally, I could find where it happens. If I use "get" in a HTML form
(instead of "post"), vibe.d complains. I set the max request and request
header size to 25MB.

`
400 - Bad Request

Bad Request

Internal error information:
object.Exception@../../.dub/packages/vibe-d-0.7.29/vibe-d/source/vibe/stream/operations.d(349):
Reached maximum number of bytes while searching for end marker.
----------------
`

https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/stream/operations.d#L349



Hm... you don't get a full stack trace? Hard to tell what max_bytes should be, it defaults to ulong.max, so no way you are exhausting that. Without knowing where readUntilSmall is called, it's hard to diagnose.

-Steve

Reply via email to