Dammed, you are totally right!! I was building uwsgi core, and all the plugins needed separately.
python uwsgiconfig.py --build core python uwsgiconfig.py --plugin plugins/corerouter core python uwsgiconfig.py --plugin plugins/http core python uwsgiconfig.py --plugin plugins/psgi core python uwsgiconfig.py --plugin plugins/coroae core and then running the example: uwsgi --plugins-dir=/opt/uwsgi/ --plugins psgi,coroae,http *--http :8080*--coroae 100 --psgi webchat.pl My mistake was use --http instead of --http-socket, despite of http://uwsgi-docs.readthedocs.org/en/latest/HTTP.html Thanks for your patience. Greetings 2013/11/13 Roberto De Ioris <[email protected]> > > > Yes, I'm at last commit (22e958fe35a088082cff9121ddfbd46ad6c6e03) in > > master > > branch. > > > > Anyway adding a pair of AE::logs can be seen too, how only redis event is > > triggered (if you publish externally from redis-cli), the websocket event > > never is triggered. > > > >> use AnyEvent::Log; > >> ... > >> if ($websocket_event) { > >> my $msg = uwsgi::websocket_recv_nb; > >> AE::log alert => "Websocket event! msg= > >> $msg"; > >> $redis_publisher->publish('foobar', > >> $msg) > >> if $msg; > >> $websocket_event = 0; > >> } > >> # any redis message available ? > >> if ($redis_message) { > >> uwsgi::websocket_send('['.time().'] > >> '.$redis_message); > >> AE::log alert => "Redis event. msg= > >> $redis_message"; > >> $redis_message = undef; > >> } > > > > > > > > > > This is the step i do (OSX): > > git clone https://github.com/unbit/uwsgi > cd uwsgi > make coroae > ./uwsgi --http-socket :9090 --coroae 100 --psgi tests/websockets_chat.pl > > then (be sure redis is running) > > go to localhost:9090 > > do you get the same problem ? > > > (sorry if it looks useless but i just only want to be sure you have the > latest code and you are running things in the same way) > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
