Write a module to support other protocol that http
rashaguo at gmail.com
Mon Jun 7 12:46:26 MSD 2010
Really appreciate if you post the source about the module.
2010/6/7 191919 <191919 at gmail.com>
> Perhaps you are right. I didn't find a stable structure for
> libevent-based program that scales by numbers of CPU. And the way
> which libevent uses epoll/kqueue/etc is not quite efficient.
> Furthermore, I want to use event-based multi-process model and take
> advantage of some nginx's particular feature such as file AIO, so
> nginx looks like a good start point. In fact, it is very easy to set
> up such a module.
> I have written a sample module which serves the Flash Socket/XMLSocket
> cross-domain requests. I will post the source if anyone is interested
> 2010/6/7 Piotr Sikora <piotr.sikora at frickle.com>:
> >> libevent has its own limit and actually it doesn't scale very well.
> > Huh? Are you sure? Both nginx and libevent are only adding abstraction
> > on top of existing event mechanism in your operating system (kqueue,
> > etc) and in the end your application calls exactly the same syscalls. I'm
> > pretty sure that both solutions scale exactly the same.
> >> I found that I can add my own modules without http and mail by adding
> >> source file list to CORE_MODULES, and nginx compiles ok and begins to
> >> server my protocol. :)
> > Yes, you can definitely do that.
> > But I would say that you're using wrong tools for this job.
> > Best regards,
> > Piotr Sikora < piotr.sikora at frickle.com >
> > _______________________________________________
> > nginx-devel mailing list
> > nginx-devel at nginx.org
> > http://nginx.org/mailman/listinfo/nginx-devel
> nginx-devel mailing list
> nginx-devel at nginx.org
Thanks & Best Regards!
Email:rashaguo at gmail.com <Email%3Arashaguo at gmail.com>
Yahoo:rashaguo at yahoo.com <Yahoo%3Arashaguo at yahoo.com>
MSN:ra8310abc at hotmail.com <MSN%3Ara8310abc at hotmail.com>
~~I play every game like the last one!~~
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel