We have a broker (major domo) together with few worker instants running on the same server. When the broker fails, it just hangs on there, restarting only broker instant does not solve the problem, we have to restart all services (stop ALL services then start again, not restart each service individually). We figured out the service is stopped due to an assertion on context level, which prevents other services from accessing libzmq. What we are missing is a proper way to log the assertion out to have debug information. I think libzmq by default should log the assertion to file for easier tracing and debug, something like log4c is good.
Cheers, Viet On Jun 25, 2012, at 7:05 PM, Pieter Hintjens <[email protected]> wrote: > On Mon, Jun 25, 2012 at 4:46 PM, Viet Hoang (Quant Edge) > <[email protected]> wrote: > >> Do you have any example or instruction on how to property writing log to >> file file from C? We do not want to interrupt the libzmq on live production >> system. > > I don't have code examples right here, but you might write to the > EWindows event log. In any case this is when a process is crashing, so > it's not going to interrupt anything. You can configure the service to > restart automatically, right? > > -Pieter > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
