The dispatcher already limits the size of the requests. It is written in the documentation. It is just I would like to read this value at init time (if it is possible).
-- Michele Sciabarra [email protected] ----- Original message ----- From: Felix Meschberger <[email protected]> To: "[email protected]" <[email protected]> Subject: Re: How to pass size the max size of the request to the runtime? Date: Tue, 11 Sep 2018 13:08:30 +0000 Hi Holding the complete input in memory ? Sounds like a good DoS surface - unless you limit the input size.... Regards Felix -- Creative typing support courtesy of my iPhone Am 11.09.2018 um 15:02 schrieb Rodric Rabbah <[email protected]<mailto:[email protected]>>: The http post will have a content length is that useful? -r On Sep 10, 2018, at 7:45 AM, Michele Sciabarra <[email protected]<mailto:[email protected]>> wrote: Hello, I am in the process of running the mandatory tests against the Go Runtime. In the process, I fixed a lot of bugs, because those tests revealed a number of details about encoding, env variables and other things that were not obvious to me in the first place. Now I have a problem: I am trying to pass the test that tried to send a one-megabyte big request to the runtime. Currently, it does not work because I discovered the "scan" buffer has in Golang a fixed size of 64k. Of course, I can increase it but I need to know how big it must be. I know that you can set some parameters at OpenWhisk level but I am not aware how a runtime can know those parameters. Most notably I need to be able to read the maximum size of the requests because I need to allocate a buffer at init time. Any hints? -- Michele Sciabarra [email protected]<mailto:[email protected]>
