Hi Igor. I have wrote some reusable functions for dealing with "foreign" C libraries. You can find the code here: http://hg.mperillo.ath.cx/nginx/mod_wsgi/file/tip/ngx_ext.c Maybe they can be added to nginx core. Manlio Perillo