Open florian-g2 opened 1 week ago
Interesting, I will try take a look when I had more time.
In the past, I almost rewrite the entire implementation to send data directly to AWS instead of relying on the AWS abstraction that is broken/bad.
But thanks for reporting!
While implementing my other PR, I noticed that trailing headers are not supported and using them blocks the response until the timeout of the serverless runtime. The used constant
endChunked = '0\r\n\r\n';
does not respect trailing headers. The trailing headers may be added in between the two CRLFs. I do not suggest to fix it right away, it should just be kept on radar and be documented. As far as I can tell, trailing headers are aside from checksums not very broadly used.Current Behavior
A response will never finish when trailing headers are set.
Expected Behavior
Response with trailing headers are sent normally.
Steps to Reproduce the Problem
Environment