Hello, I'm the developer of Nchan (previously known as the http push module) -- https://github.com/slact/nchan. I'm writing a stub_status - like stats output handler, and I want to output the amount of shared memory actually used. I could keep track of the raw bytes allocated with wrappers to ngx_slab_alloc, but that does not produce accurate numbers because the slab allocator works on pages. I'mby slact - Nginx Mailing List - English
Channel multiplexing will be available soon, maybe in the next release. - Leo Smrchy wrote: > Hey Leo, > nice work - looks awesome. I've been playing around with the server > and i'm wondering if it's possible to be member of multiple channels > with one connection. Like being in a chat with 3 people. I could open > 3 long polling requests but would have to trick around with dby slact - Nginx Mailing List - English
Take a look at http://pushmodule.slact.net . You would have Java send HTTP requests to urls of your choosing to interact with the server -- both to publish messages and subscribe to communication channels. If you want any sort of moderation functionality, you will want to keep the publisher locations visible only to your application and have clients send messages through your application (by slact - Nginx Mailing List - English
This module turns Nginx into an adept HTTP Push and Comet server. It takes care of all the connection juggling, and exposes a simple interface to broadcast messages to clients via plain old HTTP requests. This lets one write live-updating asynchronous web applications as easily as their oldschool classic counterparts, since the code does not need to manage requests with delayed responses. Theby slact - Nginx Mailing List - English
> А какие бывают лицензии на картинки ? Я не адвокат (особенно по Российскомы закону), но механика лицензировки на картинки и т.п. аналогична лицензировки кода. Есть, лицензии аналогичные Свободному ПО, на пример варианby slact - Nginx Mailing List - Russian
Спрашивал (тщетно) на Английском списке, попробую здесь: знает кто-ли бы лицензиыю Nginx логотипа, особенно относясь к производным работам? ( http://pushmodule.slact.net/logo.png )by slact - Nginx Mailing List - Russian
As Cliff said, definitely +1. Is it at all possible to roll this thing as a module, or does it fundamentally have to be a patch? - Leoby slact - Nginx Mailing List - English
What are the licencing terms for the nginx logo found at http://nginx.net/ ? Same as nginx code? Are derivative works okay ( http://pushmodule.slact.net/ )?by slact - Nginx Mailing List - English
FYI, and for anyone else encountering this problem, I ended up rolling my own socketpairs and reusing some of the existing channel handling functions. One caveat that I did notice: - The number of worker processes is needed before nginx fork()s. You can get this in your module's __initialization handler__ from ((ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module))->worker_by slact - Nginx Mailing List - English
Maxim Dounin wrote: > Hello! > > On Mon, Oct 19, 2009 at 12:23:00AM -0400, Leo P. wrote: > > >> How might I be able to send a message or (custom) event to some >> given worker process? I am storing pointers to requests (and the >> workers that processed them) in shared memory for a module ( >> http://github.com/slact/nginx_http_push_module ), and need to aby slact - Nginx Mailing List - English
How might I be able to send a message or (custom) event to some given worker process? I am storing pointers to requests (and the workers that processed them) in shared memory for a module ( http://github.com/slact/nginx_http_push_module ), and need to alert said workers to respond to said requests, from the context of a location request handler in a module. (maybe using ngx_channel stuff?) I'by slact - Nginx Mailing List - English
D'oh! you're right. I'll probably have to do something that calls ngx_write_channel in some way, from what I understand. Maxim Dounin wrote: > Hello! > > On Sun, Oct 18, 2009 at 07:02:17PM -0400, Leo P. wrote: > > >> Good day. I'm working on >> http://github.com/slact/nginx_http_push_module . and I've got this >> one nasty bug that I'm having a bit of trouble wby slact - Nginx Mailing List - English
Good day. I'm working on http://github.com/slact/nginx_http_push_module .. and I've got this one nasty bug that I'm having a bit of trouble with. An aside first, though. The way this thing works is by setting up an rbtree in a shared memory zone. Waiting listener requests are queued up in channels (represented by nodes on the shared rbtree). Naturally, when a listener request is finished or aby slact - Nginx Mailing List - English