From: Vlad S. <vl...@cr...> - 2006-08-22 15:10:09
|
What is the requirement for changing config array, did i miss it? Can you dump all config tree at startup into ns_cache and then work with it instead of ns_config later? Zoran Vasiljevic wrote: > On 22.08.2006, at 16:46, Rick Cobb wrote: > >> Uh, and I may be missing something about how you're thinking of doing >> this, but how would you handle open configuration sets like the >> environment variables for the CGI module, or the map of mime-type/file >> extensions? > > ?? ( == do not understand) > > What do you mean by "open configuration sets" ?? > Using ns_config, nothing is "open". It is just > a query into a in-memory data structure. > > The fact that this query now uses no locks, and is thus > "cheap", modifying it to use locks is one issue > (and you need locks at that place because somebody > could read and other could modify the same structure). > Another issue is: some module already "consumed" > the parameter at startup and will never ask for it > again: what is the point in changing that particular > parameter? > Also, should this all be allowed anyway (security issue)? > > This is what I see as things to take in account. > > For the locking issue: I believe this is not that > important as it can be easily "fixed" by storing the > value got from config in a private variable and then > reusing this for the time being. > > For the security issue: well, there might be a > config option to allow this, either as runtime > or compile-time option (the latter will solve > any locking issues implicitly) > > For the sense of changing a once-read config value? > Well, there isn't (sense). But that has nothing to > do with the implementation. > > Cheers > Zoran > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |