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">&lt;<a href="mailto:191919@gmail.com">191919@gmail.com</a>&gt;</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&#39;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&#39;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 &lt;<a href="mailto:piotr.sikora@frickle.com">piotr.sikora@frickle.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt;&gt; libevent has its own limit and actually it doesn&#39;t scale very well.<br>
&gt;<br>
&gt; Huh? Are you sure? Both nginx and libevent are only adding abstraction level<br>
&gt; on top of existing event mechanism in your operating system (kqueue, epoll,<br>
&gt; etc) and in the end your application calls exactly the same syscalls. I&#39;m<br>
&gt; pretty sure that both solutions scale exactly the same.<br>
&gt;<br>
&gt;&gt; I found that I can add my own modules without http and mail by adding<br>
&gt;&gt; source file list to CORE_MODULES, and nginx compiles ok and begins to<br>
&gt;&gt; server my protocol. :)<br>
&gt;<br>
&gt; Yes, you can definitely do that.<br>
&gt; But I would say that you&#39;re using wrong tools for this job.<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Piotr Sikora &lt; <a href="mailto:piotr.sikora@frickle.com">piotr.sikora@frickle.com</a> &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; nginx-devel mailing list<br>
&gt; <a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
&gt; <a href="http://nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://nginx.org/mailman/listinfo/nginx-devel</a><br>
&gt;<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 &amp; 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>