From: Stephen D. <sd...@us...> - 2005-12-11 04:44:13
|
Update of /cvsroot/naviserver/naviserver/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4761/include Modified Files: ns.h Log Message: * include/ns.h: * nsd/nsd.h: * nsd/fastpath.c: * nsd/tclrequest.c: * nsd/tclcmds.c: * nsd/server.c: * nsd/proc.c: * tests/ns_register_proc.test: Add new Tcl command ns_register_fastpath which re-register the original fastpath proc for static file serving, for the specified method and URL. This allows e.g. a Tcl proc to be registered as the default handler for the URL / and then override this with the fastpath proc for /images. The fastpath proc invokes no Tcl and therefore does not allocate an interp. Non-Tcl using threads can be segregated using the conn pool mechanism. (RFE: http://sf.net/tracker/index.php?func=detail&aid=1012770&group_id=3152&atid=353152) Index: ns.h =================================================================== RCS file: /cvsroot/naviserver/naviserver/include/ns.h,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** ns.h 5 Dec 2005 08:40:23 -0000 1.62 --- ns.h 11 Dec 2005 04:44:04 -0000 1.63 *************** *** 919,922 **** --- 919,924 ---- Ns_UrlIsDir(CONST char *server, CONST char *url); + NS_EXTERN Ns_OpProc Ns_FastPathProc; + /* * filter.c: |