Localhost as an endpoint name

37 views
Skip to first unread message

miles

unread,
Nov 27, 2012, 12:39:37 PM11/27/12
to rhino-t...@googlegroups.com
Hi,

I encountered some strange behaviour when using the IEndpointRouter component, which was that messages sent to localhost weren't being re-routed.  Strange because messages sent elsewhere were re-routed as expected.

It turned out that this is because localhost is special-case replaced with the machine name, so reading the config to do the remapping doesn't necessarily work:

Does anyone know why it actually does this?  If so, shouldn't it be using Uri.IsLoopback property as I would think the same reasoning should apply if the user wrote 127.0.0.1 in the config file?  And lastly, is it a good idea to put the same logic into the EndpointRouter as currently some remappings can appear to be bypassed?

Miles

Miles Waller

unread,
Jan 23, 2013, 10:31:30 AM1/23/13
to rhino-t...@googlegroups.com
Hi,

I've submitted a pull request to fix this issue and a nullreference
exception that we found when trying to set up a bootstrapper with
non-default configuration:

https://github.com/hibernating-rhinos/rhino-esb/pull/66

Cheers,

Miles
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino Tools Dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rhino-tools-dev/-/gw3Y6i_O-8cJ.
> To post to this group, send email to rhino-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rhino-tools-d...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
Reply all
Reply to author
Forward
0 new messages