>>> >>> The alternative then is to run a thread. A single thread would not be a >>> problem. >>> >>> >> >> emperor_* c functions are not thread safe, so calling them from a >> pthread >> will make disaster for sure. Are you sure you need concurrency for your >> emperor plugin ? > > I will want to subscribe to the continuous changes feed > > http://rcouch.org/docs/changes.html#continuous >
Cool, but given that, would not be better to have a management interface for the emperor ? (something usable via telnet for example). >telnet localhost port add /etc/uwsgi/foobar.ini ok reload /etc/uwsgi/foobar.ini ok delete /etc/uwsgi/foobar.ini ok reload /etc/uwsgi/foobar.ini error unknown instance foo /etc/uwsgi/foobar.ini error unknown command using something like that you can write adapters for basically everything and without dealing with c (and people can write more advanced interfaces using readline, history and so on...) -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
