Forum Discussion

CTree's avatar
CTree
Icon for Altostratus rankAltostratus
Jun 05, 2014

Can I force active connections to read an iRule after it has been changed?

If I change an iRule, how can I force active connections to read the new iRule?

 

2 Replies

  • i am not aware of any method except resetting (deleting) active connection.

     

    anyway, if change is on data group data (e.g. enabling/disabling debug based on data group data instead of irule variable), it will also affect active connection.

     

  • The example would be: adding log messages to an iRule for diagnostics. I guess I could add a data group for log messages (seems like overkill).

    if {[class match [string tolower [HTTP::host]] ends_with log-diagnostic]} { 
        set logmessage [class match -value -- [HTTP::host] ends_with log-diagnostic]
    log local0. "$logmessage "
    }
    

    Data Group String: test.host.org := "Address [HTTP::host][HTTP::uri] REFERER [HTTP::header "Referer"] Client IP Address: [IP::client_addr] "