[Catalyst-dev] Catalyst trouble with request body >4096

Adam Jacob adam at stalecoffee.org
Tue Nov 7 19:31:15 GMT 2006


It appears that Catalyst has some trouble with reading a request body
that's >4096.  It apparently will populate the request body twice,
causing some pretty strange behavior if you are processing large body's.  

A test case is attached.  It just takes a string that begins with three
"---"s, followed by enough a's to get the length high enough.  It then
POSTs that data to Catalyst, and the method it's dispatched to will
simply print the request body as the response body.

When the length is <4096, you will only see one instance of ---.  When
the length is >4096, you'll see two.

Adam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: huge-post.t
Type: application/x-troff
Size: 9489 bytes
Desc: not available
Url : http://jules.scsys.co.uk/pipermail/catalyst-dev/attachments/20061107/d9779e44/huge-post.t


More information about the Catalyst-dev mailing list