I have just committed a plugin autoloading system.

It works only for option passed in config files (i do not know if i will
be able to apply it even for command line args as getopt_long is not so
advanced)

To enable it simply pass --autoload to command line or add it to your
configuration files (as the first option possibly).

Whenever an unknown option is found uWSGI will scan the plugin_dir (you
set it in the build profile) and will load all of the *_plugin.so library
it found. If the option is part of the plugin, te plugin itself will
remains loaded (ready to serve the following options) otherwise it will
get freed.

In my tests (Linux, OSX, FreeBSD) the dlclose() function does it jobs and
all the plugins memory is freed, but every report on this topic is really
wellcomed.


I have added some option in buildconf/modular.ini for easy testing

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to