Joe_Hsy_45207
Jan 18, 2008Nimbostratus
HTTP:collect 4MB limit bug>?
Hi,
I just learned that there is a limit to HTTP::collect of 4 mb before it will crash TMM:
https://support.f5.com/kb/en-us/solutions/public/6000/500/sol6578.html?sr=350501
This means many of the sample iRles on devcentral (credit card scrubber, for example) could cause TMM to crash! Anyway, we're working on a workaround for our iRule and I have the following question:
If the content-length for a http response is greater this 4MB, is there a way to collect the end of the content using HTTP::release and HTTP::collect pairs? In other words, in the HTTP_RESPONSE_DATA event, call HTTP::release, then HTTP::collect until the last content is recieved. I don't need to keep all the content, but I need an event to trigger when the last content is received.
The above seems doable if the content-length header exists and we know ahead of time the size of the content. However, how could this be made to work when content-length header is missing? Is there a way to know when the last byte of content has been received?
Alternatively, is there an event other than HTTP_RESPONSE_DATA which will trigger when the last byte of HTTP content is received from the server?
Thanks!
//Joe