wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

Regarding channels #111

Closed pokal4u closed 10 years ago

pokal4u commented 10 years ago

Hi,

Is it limit to add channels in nginx pushstream (long pooling)? and in case i did't close channel what happen?

Thanks Pokal4u

wandenberg commented 10 years ago

The number of channels are limited by the amount of shared memory you configured, and to the limit of max_channels, if you use it. The channels are collected after the inactivity time, you don't need to explicitly "close" it. If you have a configuration with a big inactivity time, or a big message ttl you may reach the memory limit sooner than expected.