Reading chunked data in iRule
Hey, I have an iRule in which I read all the payloads in each request and response.
When there iRule receives chunked data, because there is no content-length I just use some big number as a limit on how much to read with HTTP::collect.
There problem is that by doing that I keep the api occupied while waiting for the EOF or to reach the limit in collect, and only then does it send the request/response forward, instead of each chunk reaching the other side when sent.
If I put a small limit to HTTP::collect I will miss out on more data as the payloads will be truncated.
Any way to read the whole chunked payload at the very end, or reading in a loop each chunk while also letting it reach the destination?