Forum Discussion
Kirk_Bauer_1018
Altostratus
Jul 20, 2007How to tell when a RTSP request completes?
My knowledge of RTSP is very limited so maybe I'm not asking this properly. But it seems I can watch for the event RTSP_REQUEST to see when a new RTSP session is started. Does that session typically...
Brandon_Burns_8
Jul 23, 2007Historic F5 Account
Kirk,
Is this limiting done on a per uri basis, or a per streaming server? It would be easier to limit the number of streams on a given server using the following rule.
when RULE_INIT {
array set connections { }
}
when CLIENT_ACCEPTED {
if { [info exists ::connections([IP::local_addr])] } {
if { [incr ::connections([IP::local_addr])] > 1000 } {
reject
}
} else {
set ::connections([IP::local_addr]) 1
}
}
when CLIENT_CLOSED {
if { [incr ::connections([IP::local_addr]) -1] <= 0 } {
unset ::connections([IP::local_addr])
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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