James_Thomson
Nov 22, 2006Employee
Compress if RTT is above a certain amount
I'm trying to use the following iRule:
when HTTP_REQUEST {
set rtt [TCP::rtt]
}
when HTTP_RESPONSE {
if {$rtt < 1600 } {
log "NOcompress rtt=[TCP::rtt]"
COMPRESS::disable
}
elseif {$rtt > 1600 } {
log "compress rtt=[TCP::rtt]"
COMPRESS::enable
COMPRESS::gzip level 9
}
}
In my log, I see:
Nov 22 10:18:47 tmm tmm[754]: 01220002:6: Rule sel-compress : compress rtt=1323
Nov 22 10:18:48 tmm tmm[754]: 01220002:6: Rule sel-compress : compress rtt=1318
Nov 22 10:18:49 tmm tmm[754]: 01220002:6: Rule sel-compress : compress rtt=1310
Does this make any sense because it should only log "compress if the rtt is above 1600 right?