From: SourceForge.net <no...@so...> - 2006-07-11 15:50:20
|
Feature Requests item #1520624, was opened at 2006-07-11 15:50 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719009&aid=1520624&group_id=130646 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: C-API Group: Next Release (example) Status: Open Resolution: None Priority: 5 Submitted By: Bernd Eidenschink (eide) Assigned to: Nobody/Anonymous (nobody) Summary: Provide access to default configuration Initial Comment: Make all configuration options visible (log file) and accessible (ns_config) as well as their default values. While it is possible to print out the configuration after startup (Example 1 below), only the values set up in the config file are visible. When starting the server in the way that it logs 'debug' level messages (Example 2 below), a lot of default values/ranges are logged but only for those where Ns_Log('Debug') is set up. Some are still missing (along with the defaults). Is it possible to not only set variables internally during startup but to also build the ns_set needed for ns_config command in parallel? Example 1-----Print config------------------- set out [list] foreach section [lsort [ns_configsections]] { lappend out [string repeat - 80] lappend out "[ns_set name $section]" lappend out [string repeat - 80] array set section_values [ns_set array $section] foreach section_key [lsort [array names section_values]] { lappend out "$section_key: [set section_values([set section_key])]" } array unset section_values } puts [join $outpuf "\n"] Example 2-----Print config------------------- ... config: ns/parameters:listenbacklog value=(null) min=0 max=2147483647 default=32 (int) config: ns/parameters:dnscache value=(null) default=true (bool) config: ns/parameters:dnscachemaxsize value=(null) min=0 max=2147483647 default=512000 (int) config: ns/parameters:dnswaittimeout value=(null) min=0 max=2147483647 default=5 (int) config: ns/parameters:dnscachetimeout value=(null) min=0 max=2147483647 default=60 (int) ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=719009&aid=1520624&group_id=130646 |