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....
Hyun-Sub_Kim_37
Nimbostratus
Apr 24, 2006When I use this iRule, I can see error message.
when 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 120
}
incr reqs_sec
return
}
}
set start_time $cur_time
set reqs_sec 0
}
======================================
I don`t know what the error message is.
Apr 24 21:22:07 tmm tmm[726]: 01220001:3: TCL error: Rule test - while executing "HTTP::respond 503 "
Apr 24 21:22:08 tmm tmm[726]: 01220001:3: TCL error: Rule test - while executing "HTTP::respond 503 "
Apr 24 21:22:09 tmm tmm[726]: 01220001:3: TCL error: Rule test - while executing "HTTP::respond 503
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