Really appreciate if you post the source about the module.<br><br>Thanks<br><br><div class="gmail_quote">2010/6/7 191919 <span dir="ltr"><<a href="mailto:191919@gmail.com">191919@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Perhaps you are right. I didn't find a stable structure for<br>
libevent-based program that scales by numbers of CPU. And the way<br>
which libevent uses epoll/kqueue/etc is not quite efficient.<br>
Furthermore, I want to use event-based multi-process model and take<br>
advantage of some nginx's particular feature such as file AIO, so<br>
nginx looks like a good start point. In fact, it is very easy to set<br>
up such a module.<br>
<br>
I have written a sample module which serves the Flash Socket/XMLSocket<br>
cross-domain requests. I will post the source if anyone is interested<br>
in.<br>
<br>
2010/6/7 Piotr Sikora <<a href="mailto:piotr.sikora@frickle.com">piotr.sikora@frickle.com</a>>:<br>
<div><div></div><div class="h5">>> libevent has its own limit and actually it doesn't scale very well.<br>
><br>
> Huh? Are you sure? Both nginx and libevent are only adding abstraction level<br>
> on top of existing event mechanism in your operating system (kqueue, epoll,<br>
> etc) and in the end your application calls exactly the same syscalls. I'm<br>
> pretty sure that both solutions scale exactly the same.<br>
><br>
>> I found that I can add my own modules without http and mail by adding<br>
>> source file list to CORE_MODULES, and nginx compiles ok and begins to<br>
>> server my protocol. :)<br>
><br>
> Yes, you can definitely do that.<br>
> But I would say that you're using wrong tools for this job.<br>
><br>
> Best regards,<br>
> Piotr Sikora < <a href="mailto:piotr.sikora@frickle.com">piotr.sikora@frickle.com</a> ><br>
><br>
><br>
><br>
> _______________________________________________<br>
> nginx-devel mailing list<br>
> <a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
> <a href="http://nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://nginx.org/mailman/listinfo/nginx-devel</a><br>
><br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://nginx.org/mailman/listinfo/nginx-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanks & Best Regards!<br><br><a href="mailto:Email%3Arashaguo@gmail.com">Email:rashaguo@gmail.com</a><br><a href="mailto:Yahoo%3Arashaguo@yahoo.com">Yahoo:rashaguo@yahoo.com</a><br>
<a href="mailto:MSN%3Ara8310abc@hotmail.com">MSN:ra8310abc@hotmail.com</a><br>------------------------------------------------------------<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br> ~~I play every game like the last one!~~<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>