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]>
