On 01/16/2012 09:11 PM, JR Richardson wrote:
So my question; what is the difference between a drop;
and exit;
within the on_reply route
Remember that an onreply_route is a callback that allows you to
intercept a reply, but the reply is forwarded by default afterward (if
using stateful forwarding). This is different from a request route,
where it's up to you to marshal everything, and to explicitly forward
the message.
Thus, exiting an onreply_route has null effect. It doesn't do
anything to stop the reply from being forwarded, because forwarding is
the behaviour--the onreply_route is just a hook. In contrast, 'drop'
explicitly drops the message and prevents further forwarding of the
reply from taking place.
This is different than in a request route, where exiting precludes any
forwarding action, because forwarding action must be taken explicitly
-- e.g. t_relay().
--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web:
http://www.evaristesys.com/