aws / aws-lambda-nodejs-runtime-interface-client

Apache License 2.0
177 stars 57 forks source link

Function URL response streaming with small payloads unexpected behavior #102

Open francesco-avola-enginius opened 3 months ago

francesco-avola-enginius commented 3 months ago

We noticed that with payload smaller than about 100kb response streaming is not working properly: in some cases the chunk is buffered and sent with the next one, other times it appears incomplete or malformed. The workaround is to add some characters to reach a bigger size and get the chunk immediatly. I can't find this limit mentioned in documentation.