I'm no more able to use my wsgi python binding to libevent, because the
evhttp_dispatch_callback ( or evhttp_handle_request) function is now
static.

Indeed, as I've mentioned in my mail of "Sun, October 14, 2007 10:22 am",
I've been forced to update this function.

Because the function is not static, I'm able, with libevent-1.3 able to
over-write it in my own code:
Line 46 here
http://www.opensource4you.com/cgi-bin/gitweb.cgi?p=fapws2;a=blob;f=fapws2/_evhttp.c;h=eb0cd0aebcb31b48874842335575827b89091596;hb=05ec30b72f106120d1aa2c7913ba609a1a1fe4a4
This is no more possible with libevent-1.4.


Thanks to provide possibilities for extension like mine.
Or, if I'm not using libevent as it should be, thanks to provide me a
better way.


Thanks


PS:
I remind here that my goal is to call a callback based on the start of the
url. For example, if I have a callback associated to the url:/static/, all
the following urls will trigger this call back:
/static/img/logo.png
/static/css/main.css
/static/js/hello.js

As specified in the wsgi specs ( www.wsgi.org), and url is composed of
different elements:
url = quote(environ.get('SCRIPT_NAME',''))
url += quote(environ.get('PATH_INFO',''))
if environ.get('QUERY_STRING'):
    url += '?' + environ['QUERY_STRING']

In my first example associated variable will be: 
environ['SCRIPT_NAME']="/static/",
environ["PATH_INFO"]="img/logo.png", and
environ["QUERY_STRING"]="".










> Hi everyone,
>
> I am pleased to announce the release of libevent-1.4.0-beta.  This
> release contains major new features:
>
>  - RPC subsystem that makes it easy to write distributed servers and
> clients
>  - almost everything is documented via Doxygen now
>  - many fixes and improvements to evdns and evhttp
>  - libevent now builds two additional libraries: libevent_core
> (containing only the event core) and libevent_extras (contained evdns,
> evhttp and evrpc)
>  - performance improvements due to using a heap instead of red-black
> trees for timeouts
>  - Solaris' event ports are better supported
>
> Plus many other fixes - see the ChangeLog file for more details.
>
> You can download libevent from
>
>   http://www.monkey.org/~provos/libevent/
>
> I would like to thank Charles Kerr, Christopher Layne, Hannah
> Schroeter, Lubomir Marinov, Magne Mahre, Mark Heily, Maxim
> Yegorushkin, Nick Mathewson, Prakash Sangappa and Trond Norbye for
> their help.
>
> If you encounter any problems or would like to submit patches, let
> either Nick Mathewson or myself know or use the tracker at:
>
>   https://sourceforge.net/tracker/?group_id=50884
>
> Thanks,
>   Niels.
> _______________________________________________
> Libevent-users mailing list
> Libevent-users@monkey.org
> http://monkeymail.org/mailman/listinfo/libevent-users
>
>


_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to