Idea: Zeroconf/Avahi support?
cliff at develix.com
Tue Mar 10 01:55:43 MSK 2009
On Mon, 2009-03-09 at 22:26 +0000, Marcus Clyne wrote:
> Cliff Wells wrote:
> > On Tue, 2009-03-10 at 08:05 +1100, Dave Cheney wrote:
> > > Hi Chris,
> > >
> > > That is an excellent idea. I would be very interested in such a module
> > > as it would allow me to use nginx to proxy a bunch of dynamic j2ee
> > > applications. I'd be interested in working on the companion connector
> > > for tomcat if one doesn't already exist.
> > >
> > > The major stubling block I can see is integrating the avahi resolver
> > > (for lack of a better word) into Nginx without blocking.
> > >
> Making Avahi non-blocking wouldn't be difficult. If Avahi is
> long-running, you can put it in a separate thread and send information
> back to Nginx via writing information to a pipe (since Nginx isn't
> thread-safe). I'm not sure how Avahi works, but you might want to use
> the a timed event (there are functions available for this in the Nginx
> source) as a trigger.
It seems Avahi is actually designed to be tied into an event loop:
More information about the nginx