Re: [zeromq-dev] Using zeroMQ socket from freeradius module

2012-07-07 Thread Max Kuznecov
Indeed! Looks like freeradius instantiates its modules before forking. I've postponed context/socket initialization and now everything works perfectly. Thank you very much! 2012/7/7 Ian Barber : > > > On Fri, Jul 6, 2012 at 3:11 PM, Max Kuznecov wrote: >> >> Oh, sorry I forgot to mention versio

Re: [zeromq-dev] Using zeroMQ socket from freeradius module

2012-07-06 Thread Ian Barber
On Fri, Jul 6, 2012 at 3:11 PM, Max Kuznecov wrote: > Oh, sorry I forgot to mention versions: > linux centos 6.2, zeromq 2.2.0 > > Is the context created in the process before the fork happens? Might be worth trying moving where the context and socket are created - it can be tricky with fork aft

Re: [zeromq-dev] Using zeroMQ socket from freeradius module

2012-07-06 Thread Max Kuznecov
Oh, sorry I forgot to mention versions: linux centos 6.2, zeromq 2.2.0 2012/7/6 Max Kuznecov : > Hi! > > I'm facing a strange problem which I'm unable to resolve for about a > week, so I decided to ask in the list as a last resort. > > I've got a system which collects requests from custom freerad

[zeromq-dev] Using zeroMQ socket from freeradius module

2012-07-06 Thread Max Kuznecov
Hi! I'm facing a strange problem which I'm unable to resolve for about a week, so I decided to ask in the list as a last resort. I've got a system which collects requests from custom freeradius account module, stores them in persistent queue on disk and then serves to the agents, which put them i