Forum Discussion
Andy_park_66466
Nimbostratus
Mar 21, 2006Want http request limit !!
I had seen this subject → http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=2169
Where is " variable 'reqs_sec " ?
I think 'variable 'reqs_sec' is missing....
Andy_park_66466
Nimbostratus
Mar 21, 2006when HTTP_REQUEST {
set cur_time [clock seconds]
if { [HTTP::request_num] > 1 } {
if { $cur_time == $start_time } {
if { $reqs_sec > 3 } {
HTTP::respond 503 Retry-After 2
}
incr reqs_sec
return
}
}
set start_time $cur_time
set reqs_sec 0
}
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