Re: arsd.cgi - maximum length of form post

2016-12-15 Thread bachmeier via Digitalmars-d-learn
On Thursday, 15 December 2016 at 16:52:54 UTC, Adam D. Ruppe wrote: On Tuesday, 13 December 2016 at 22:55:55 UTC, bachmeier wrote: Here is a minimal program that can replicate the problem. Compiled and run with OK, try the new git cgi.d version, looks like my popFront was buggy and some data

Re: arsd.cgi - maximum length of form post

2016-12-15 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 13 December 2016 at 22:55:55 UTC, bachmeier wrote: Here is a minimal program that can replicate the problem. Compiled and run with OK, try the new git cgi.d version, looks like my popFront was buggy and some data got misplaced over multiple chunks (so if the content was less than

Re: arsd.cgi - maximum length of form post

2016-12-15 Thread Adam D. Ruppe via Digitalmars-d-learn
Well, I can reproduce the error now, the buffer it is getting is too long for some reason. Probably a slicing error that doesn't show up with smaller payloads. I should have a fix today though. BTW, interestingly, the more complex codepath for uploads does work fine (add

Re: arsd.cgi - maximum length of form post

2016-12-13 Thread bachmeier via Digitalmars-d-learn
On Tuesday, 13 December 2016 at 00:54:43 UTC, Adam D. Ruppe wrote: On Tuesday, 13 December 2016 at 00:48:44 UTC, bachmeier wrote: a range violation error core.exception.RangeError@test.d(109): Range violation What's that line of your code too? Here is a minimal program that can replicate

Re: arsd.cgi - maximum length of form post

2016-12-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 13 December 2016 at 00:48:44 UTC, bachmeier wrote: a range violation error core.exception.RangeError@test.d(109): Range violation What's that line of your code too?

Re: arsd.cgi - maximum length of form post

2016-12-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 13 December 2016 at 00:48:44 UTC, bachmeier wrote: Is there a way to increase the maximum post size? The second argument to GenericMain is the max content length, it has a default of 5,000,000. http://dpldocs.info/experimental-docs/arsd.cgi.GenericMain.html

arsd.cgi - maximum length of form post

2016-12-12 Thread bachmeier via Digitalmars-d-learn
I'm using arsd.cgi, and have a form set up to take input. I get a range violation error core.exception.RangeError@test.d(109): Range violation when using the embedded server. It appears to be because the input is too large (about 3900 characters). When I cut the input to 3000 characters, there