Welcome! Log In Create A New Profile

Advanced

Re: Write a module to support other protocol that http

Qihang Guo
June 07, 2010 04:48AM
Really appreciate if you post the source about the module.

Thanks

2010/6/7 191919 <191919@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
> in.
>
> 2010/6/7 Piotr Sikora <piotr.sikora@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
> level
> > on top of existing event mechanism in your operating system (kqueue,
> epoll,
> > 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@frickle.com >
> >
> >
> >
> > _______________________________________________
> > nginx-devel mailing list
> > nginx-devel@nginx.org
> > http://nginx.org/mailman/listinfo/nginx-devel
> >
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel
>



--
Thanks & Best Regards!

Email:rashaguo@gmail.com <Email%3Arashaguo@gmail.com>
Yahoo:rashaguo@yahoo.com <Yahoo%3Arashaguo@yahoo.com>
MSN:ra8310abc@hotmail.com <MSN%3Ara8310abc@hotmail.com>
------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~I play every game like the last one!~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Write a module to support other protocol that http

Jh 2673 June 06, 2010 06:32AM

Re: Write a module to support other protocol that http

Peter Leonov 1030 June 06, 2010 10:38AM

Re: Write a module to support other protocol that http

191919 1156 June 06, 2010 10:50AM

Re: Write a module to support other protocol that http

Boris Dolgov 1609 June 06, 2010 11:26AM

Re: Write a module to support other protocol that http

Jh 1115 June 06, 2010 12:38PM

Re: Write a module to support other protocol that http

Piotr Sikora 1032 June 07, 2010 01:16AM

Re: Write a module to support other protocol that http

191919 1019 June 07, 2010 02:16AM

Re: Write a module to support other protocol that http

Piotr Sikora 1053 June 07, 2010 02:54AM

Re: Write a module to support other protocol that http

191919 1055 June 07, 2010 04:26AM

Re: Write a module to support other protocol that http

Qihang Guo 1386 June 07, 2010 04:48AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready