Forum Discussion

Rodney_Newton_7's avatar
Rodney_Newton_7
Icon for Nimbostratus rankNimbostratus
Dec 13, 2007

Time Limit on TCP Connections

I have a situation in which a client application that makes SOAP calls to a virtual server builds long lived connections that never get torn down... they are also never idle long enough to timeout. This has presented a number of problems for us so my question... Is there a way I can use an iRule to track the time a connection has been used or possibly count the transactions or amount of traffic that has passed then close it? I have searched throughout the forum with no luck.

 

 

Thanks
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Keeping track of timers in iRules is something that's still quite difficult. There is talk of adding some commands in future versions that would enable this functionality more easily.

     

     

    Until then, you could certainly keep track of how many transactions have come through, and perform some action based on that number. As far as what action you want to perform, you'll have to peruse the docs a bit here on DevCentral. You could just start rejecting new connections, or you could set the VIP to down, etc. It really depends on what you want to achieve.

     

     

    HTH,

     

    Colin