[syslog-ng] [PATCH 1/1] Add support for Unix sockets.

Conrad Hoffmann ch at bitfehler.net
Thu Aug 16 21:20:01 CEST 2012


On 08/16/2012 03:41 PM, Gergely Nagy wrote:
> Gergely Nagy <algernon at balabit.hu> writes:
> 
>> "Conrad Hoffmann" <ch at bitfehler.net> writes:
>>
>>> 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.
>>
>> If you can do the 'baking in' before I get there on friday, that would
>> be most appreciated :)
> 
> I got around to do it today, and did some more investigation. Turns out,
> mongodb does not allow unix sockets in replicaset configs. But
> nevertheless, I took your patch, then changed it to merge it behind a
> common mongo_connect() (this way, mongo_sync_connect() did not need any
> change at all, except for a documentation update).
> 
> I have not changed mongo_util_parse_addr(), because it's not needed
> right now. If and when the mongodb folk figure out whether they want to
> allow unix sockets in replicaset configs, we can update the parse_addr()
> function and things will just work.
> 
> One thing of note, is that if you connect through a unix socket to a
> replicaset, and you force a reconnect, you may end up being connected
> via TCP instead. But that requires a few things to go bad, and I believe
> this behaviour is fine.
> 
> I'll push the changes to github soon.

Nice to hear. I was just about to see what I could get done tonight, but
that's even better :)

Thanks a lot!



More information about the syslog-ng mailing list