Patches item #421740, was opened at 2001-05-05 16:50 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=303152&aid=421740&group_id=3152
Category: aolserver3_3 Group: None Status: Open Resolution: Accepted Priority: 5 Submitted By: Jamie (polygnwnd) Assigned to: Kriston Rehberg (kriston) Summary: [ns_info server] broken in config interp Initial Comment: [ns_info server] doesn't work in the configuration interpreter for versions after 3.2 as nsServer is not set until _after_ the configuration is read. Setting it when the option is parsed (like it was before) fixes this issue so [ns_info server] works in the configuration interpreter like the other ns_info calls. This might be socially unacceptable or have side effects, but I haven't notice any yet. diff -r aolserver-3.4pre1/nsd/nsmain.c aolserver- 3.4pre1-mod/nsd/nsmain.c 216a217 > nsServer = optarg; ---------------------------------------------------------------------- Comment By: Pierre Asselin (pierrethebom) Date: 2002-03-20 09:25 Message: Logged In: YES user_id=479653 We run a bunch of servers off a unified config file; I wouldn't mind reading the -s option from [ns_info server] within the config file, but as Jamie pointed out, that doesn't work. We have to resort to helper scripts and environment variables. Is there deep magic in the global variable nsServer? should Ns_TclInterpServer() read nsconf.server instead and Ns_Main() set it early in the "case 's'" argv clause? All I can say is that we could use the functionality. ---------------------------------------------------------------------- Comment By: Kriston Rehberg (kriston) Date: 2002-03-20 08:01 Message: Logged In: YES user_id=16427 Someone told me this shouldn't be done as the config interp is different from other interps. I think it has alot to do with virtual server support, but that means that the "-s" parameter should imply that ns_info server would take that value. It's still up in the air what this is supposed to do. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=303152&aid=421740&group_id=3152
