Alex Balashov writes:
But when does t_relay() itself ever fail due to
endpoint reachability
issues? I think t_relay() only fails for formal reasons, like host
name lookup failure, invalid address format, etc? Otherwise, it
returns success; if the endpoint is not reachable, the transaction
simply times out. If this is the case, branch route does get called.
my understanding is that t_relay calls a branch route always if
t_on_branch is used to set it. then in that branch route, you should be
able to call set_forward_no_connect().
I really though that t_relay() fails (return a negative code and doesn't
invoke a loaded branch_route) in case the TCP cannot be established. Am I
wrong?