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

Getting "Subscribed too much wildcard channels" no matter of what #125

Closed iotch closed 9 years ago

iotch commented 10 years ago

Hello.

push_stream_wildcard_channel_prefix    "auto_";

location ~ /sub/(.*) {
push_stream_authorized_channels_only    on;
push_stream_wildcard_channel_max_qtd    3;
}

when "push_stream_wildcard_channel_max_qtd" is set to any number (3, 10, 10000) i'm getting "Subscribed too much wildcard channels" when trying to connect to '/sub/auto_xxxx'. No matter where to put "push_stream_wildcard_channel_max_qtd", http or location level. So there is no way to limit subscriber-created wildcard channels. Either I can create any number of wildcard channels without setting max option, or I can't create any wildcard channel when trying to limit the number of such channels.

If this is intended behaviour could you please explain more how to use wildcard channels? Thanks.

wandenberg commented 10 years ago

Hi @iotch take a look on FAQ page to see how wildcard works and what it is designed for.

We have some directives to control the maximum number of channels on the server and by request, check on readme for them (push_stream_wildcard_channel_max_qtd, push_stream_max_number_of_wildcard_channels, push_stream_max_number_of_channels)