Forum Discussion
Conor_Cunningha
Nimbostratus
Oct 22, 2008HTTP::retry
G'day,
I have the following code;
when HTTP_REQUEST {
if { [HTTP::method] == "POST" } {
log local0.alert "We have a POST"
set post 1
set request [HTTP::request]
if { [HTTP::header exists "Content-Length"] } {
HTTP::collect [HTTP::header "Content-Length"]
} else { HTTP::collect 10000 }
} else {
log local0.alert "DO WE EVER GET HERE"
event disable all
}
}
when HTTP_REQUEST_DATA {
do stuff
HTTP::release
}
I was wondering whether the HTTP::release in HTTP_REQUEST_DATA releases the memory used for the set request [HTTP::request]
Otherwise I think I'm effectively going to run out of memory very quickly as I only have a small Big IP 1500 with little memory.
If it doesn't free the memory, is there a way of freeing the memory used by HTTP::request ?
Cheers,
Conor
- hoolio
Cirrostratus
Hi Conor, - Conor_Cunningha
Nimbostratus
Thanks for the heads up Aaron. I started to use the unset command and that has helped a bit. I'll wrap up the HTTP::collect in an if.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects