Forum Discussion

raytoles_75680's avatar
raytoles_75680
Icon for Nimbostratus rankNimbostratus
Dec 08, 2009

Stop processing iRules

I'm setting up some redirects and they're colliding a bit here. Is there any way to stop processing subsequent iRules? Here's what I see in the ltm logs.

 

Multiple redirect/respond invocations not allowed

3 Replies

  • There are 2 such commands that can help you with that

     

     

     

    return

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/return.html

     

     

    Event Disable

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/event.html

     

     

    I hope this helps

     

     

    Bhattman
  • Hi Ray,

     

     

    If you opted to use event disable, you should consider what impact if any the iRule would have on clients who might connect to the VIP via the same proxy. Those clients may make multiple HTTP requests over the same TCP connection. If you disable all iRules on the TCP connection, you should force LTM to close the connection to prevent subsequent HTTP requests on that connection from not being processed by your iRule(s).

     

     

    It would probably be cleaner to set a flag at the beginning of each HTTP request and check that before trying to issue a redirect:

     

     

    Multiple redirect/respond invocations not allowed

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=17663

     

     

    Aaron