Hi,
Gergely Nagy <algernon@balabit.hu> writes: I thought this further.. I really want to merge the two, and make a few other parts of the library smarter, so that replica sets would work with unix sockets too, and even a mixed environment would be possible (even if that'd be terribly broken, but still! :P).
With mongo_connect() supporting unix sockets, and mongo_util_parse_addr() being smarter and recognising them, we'd have pretty much everything covered for replica set support, I think.
I agree that this would be a far superior solution, and if you want me to I would even try to help you a little. What I am not sure about is whether MongoDB actually supports replica sets with Unix sockets, but if not I guess it's about time to open a bug report for that ;) Conrad