Forum Discussion

thagmann_128177's avatar
thagmann_128177
Icon for Nimbostratus rankNimbostratus
May 27, 2005

Set a Timer on an Active Connection

F5,

 

 

I have a customer who would like to use iRules to create a timer on all existing active connections to a pool and time each of them out after x amount of time even if they are still active. I do realize that this sounds a bit counter-intuitive as it could break things for him depeneding on the application but I said I would check for him and will be sure to remind him of the potential caveats.

 

 

Any ideas? Thanks as always.
  • drteeth_127330's avatar
    drteeth_127330
    Historic F5 Account
    I'm afraid this is a tough one. You can get the age of a connection in milliseconds with the following command:

    IP::stats age

    So I suppose you could check the age on each CLIENT_DATA event, but this approach is terribly ugly and will only work for TCP or UDP full-proxied connections (not FastL4 or FastHTTP).

    Honestly, this feature is probably beyond the realm of iRules. I recommend that the customer contact support. They can request an enhancement or maybe even file a CSR.