Forum Discussion
abeny_894
Dec 05, 2008Nimbostratus
Hi Colin,
I found that the iRules can't work after i modify as below:
________________________________________________________
when HTTP_REQUEST {
incr requestCount -1
switch -glob {[HTTP::host][HTTP::uri]} {
"test1.f5lab.com*" {
log local0. "hit test1.f5lab.com"
set site a
incr ::total_active_clients_a
log local0. "total requests are $::total_active_clients_a"
set start_time_a $cur_time_a
if { $cur_time_a == $start_time_a } {
if { $::total_active_clients_a <= $::max_active_clients_a } {
pool websrv11_pool
return
}
}
if { $cur_time_a == $start_time_a } {
if { $::total_active_clients_a >= $::max_active_clients_a } {
pool websrv_busypool
return
}
}
if { $cur_time_a == $start_time_a } {
if { $::total_active_clients_a >= $::max_active_clients_a } {
pool websrv_busypool
return
}
}
}
"xyz.com*" {
log local0. "hit xyz.com"
set site a
incr ::total_active_clients_a
log local0. "total requests are $::total_active_clients_a"
set start_time_a $cur_time_a
if { $cur_time_a == $start_time_a } {
if { $::total_active_clients_a <= $::max_active_clients_a } {
pool websrv11_pool
return
}
}
}
________________________________________________________
Am I miss something?? When i use httpwatch to see deep in, it shows "No response headers received because request failed : ERROR_INTERNET_CANNOT_CONNECT"
Thanks for your help