[AOLSERVER] ns_cache key size

2009-05-14 Thread Titi Alailima
Digging deep into the ACS session properties, I discovered something disturbing: even though ns_cache holds as large a key as you want to give it, it will only uniquely identify according to the beginning of the key when setting. In other words, the following code: ns_log Notice Sec

Re: [AOLSERVER] ns_cache key size

2009-05-14 Thread Titi Alailima
Grrr... after broadening my search I discovered that the ns_cache set was wiping out all the other entries as well, so it was actually an issue of the size limitation for the cache itself. I think I shall switch to using a separate time-limited cache for this purpose instead. Sorry for

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Titi Alailima
I agree that John's patch is worth doing. It satisfies both his requirements and the stated design goals of fastpath. The remaining issue is whether something called ns_returnfile which takes a pathname as a parameter should have some guarantee that you will return what at least at some point

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Titi Alailima
Right, I forgot that one. But the potential resolution is the same, allow a configurable unsafe mode. If you want the inode-only optimization and are willing to take on the resulting unpredictability of ns_returnfile, go right ahead. But the majority of developers who don't know or don't

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Titi Alailima
Could someone document ns_returnfp while we're talking about it? Titi Ala'ilima Lead Architect MedTouch LLC 1100 Massachusetts Avenue Cambridge, MA 02138 617.621.8670 x309 -Original Message- From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf Of Jim Davidson Sent:

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-19 Thread Titi Alailima
This would be a wonderful addition to the documentation. As a matter of fact, I just added it: http://panoptic.com/wiki/aolserver/Fastpath For what it's worth, it seems to me that if it has a measurable benefit, it's worth leaving on by default, as long as developers are properly educated

Re: [AOLSERVER] ns_sock_select issues again

2008-05-08 Thread Titi Alailima
@LISTSERV.AOL.COM Subject: Re: [AOLSERVER] ns_sock_select issues again Maybe you have a bad character somewhere in the file, or the wrong char encoding or something? tom jackson On Wednesday 07 May 2008 12:31, Titi Alailima wrote: I tried a couple more things. I re-defined _ns_http_puts

[AOLSERVER] ns_sock_select issues again

2008-05-07 Thread Titi Alailima
I’m having problems with ns_httpget on my Win32, 4.5.0, Tcl 8.5. Again I’ve narrowed it down to the ns_sock_select in _ns_http_puts (defined in modules/tcl/http.tcl). It’s not crashing now like it did with 4.0.10, Tcl 8.4.17 (you may recall a month ago I was getting an “UpdateStringProc

Re: [AOLSERVER] ns_sock_select issues again

2008-05-07 Thread Titi Alailima
I tried a couple more things. I re-defined _ns_http_puts with the original definition and everything worked fine. This got me curious so I ran [info body _ns_http_puts] (in a new interpreter where I hadn’t redefined the proc) and of course I got “ƒÄ,¶——“. A workaround is obvious, but the

[AOLSERVER] Rolling logs in Windows

2008-05-06 Thread Titi Alailima
Anyone know how to signal nsd in Windows to roll the logs? Any equivalent of kill -HUP? Titi Ala'ilima Lead Architect MedTouch LLC 1100 Massachusetts Avenue Cambridge, MA 02138 617.621.8670 x309 -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email

Re: [AOLSERVER] Rolling logs in Windows

2008-05-06 Thread Titi Alailima
, 2008 3:50 PM To: AOLSERVER@LISTSERV.AOL.COM Subject: Re: [AOLSERVER] Rolling logs in Windows Does ns_logroll work? http://rmadilo.com/files/nsapi/ns_logroll.html tom jackson On Tuesday 06 May 2008 12:12, Titi Alailima wrote: Anyone know how to signal nsd in Windows to roll the logs

Re: [AOLSERVER] Rolling logs in Windows

2008-05-06 Thread Titi Alailima
- From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf Of Titi Alailima Sent: Tuesday, May 06, 2008 5:18 PM To: AOLSERVER@LISTSERV.AOL.COM Subject: Re: [AOLSERVER] Rolling logs in Windows Not quite. I get a permission error renaming the old file. I'm running as a service from

Re: [AOLSERVER] Fix for ns_tmpnam under Windows

2008-05-05 Thread Titi Alailima
There is a missing variable declaration in this patch for i, the for-loop index. Anyone want to make this fix and commit it? Titi Ala'ilima Lead Architect MedTouch LLC 1100 Massachusetts Avenue Cambridge, MA 02138 617.621.8670 x309 -Original Message- From: AOLserver Discussion

Re: [AOLSERVER] Getting a handle on memory usage

2008-05-01 Thread Titi Alailima
Of Dossy Shiobara Sent: Wednesday, April 30, 2008 3:10 PM To: AOLSERVER@LISTSERV.AOL.COM Subject: Re: [AOLSERVER] Getting a handle on memory usage On 2008.04.30, Titi Alailima [EMAIL PROTECTED] wrote: What are the best ways of figuring out how the memory usage in AOLserver is broken down

[AOLSERVER] Getting a handle on memory usage

2008-04-30 Thread Titi Alailima
What are the best ways of figuring out how the memory usage in AOLserver is broken down? I'm not sure if I even know what all the main memory consumers (assuming normal leak-free operation). Here's what I know about: * nscache - I figure going through all the keys and adding up the

[AOLSERVER] UpdateStringProc should not be invoked for type bytecode

2008-04-04 Thread Titi Alailima
I'm trying to run AOLserver 4.0.10 on Windows (Server 2003), with Tcl 8.4.17, compiled under Visual Studio 2005. I get through running all the library files in the directory specified in the library parameter under ns/server/$service_name/tcl, and then I get a crash with the message:

Re: [AOLSERVER] UpdateStringProc should not be invoked for type bytecode

2008-04-04 Thread Titi Alailima
Further clarity: in http.tcl, I narrowed it down to a call to ns_sockselect inside _ns_http_puts. The ns_log commands weren't doing anything but I used return and error commands judiciously to see how far it could go without crashing. So anyway, how can I figure out how and why this is being

Re: [AOLSERVER] how do I

2008-03-20 Thread Titi Alailima
It does do internal redirects for special statuses like 404, at least if you configure it to do so. But the closest you can get to an ad hoc internal redirect I think is ns_adp_parse. Something like: proc internal_redirect {file_path} { ns_return 200 text/html [ns_adp_parse -file

[AOLSERVER] ISAPI Plugin

2008-03-05 Thread Titi Alailima
I just recently found out about arsDigita's plugin which ran AOLserver (3.0) as an ISAPI filter/extension for IIS (5). Does anyone still do anything of the sort? Any idea what sort of work it would take to do this with AOLserver 4 and IIS 6? Titi Ala'ilima Lead Architect MedTouch LLC 1100

Re: [AOLSERVER] ad_returnredirect

2007-10-11 Thread Titi Alailima
It would be easier to give you more guidance if you could flesh out your scenario a little. A couple questions: 1. Where are you running this script from? Is it from one of the virtual servers or somewhere else? 2. Do you care what URL the user ends up at? 3. Do you care what

Re: [AOLSERVER] ad_returnredirect

2007-10-10 Thread Titi Alailima
ad_returnredirect sends a redirect response (302) to the browser. But the browser will only get one response per request. So the second one does nothing. Do you want to just execute the second file, or do you want them to be sent to the second page after the first? For the former, you could

[AOLSERVER] 404 redirects config in 4.5

2007-09-25 Thread Titi Alailima
I'm trying to configure AOLserver 4.5 for a custom 404 page, and my Config from previous versions is: ns_section ns/server/$service_name/redirects ns_param 404 /file-not-found but I just get the default 404 page. Any ideas why? I used the 4.5 RPM from Project Open. Titi Ala'ilima Lead

Re: [AOLSERVER] 404 redirects config in 4.5

2007-09-25 Thread Titi Alailima
:[EMAIL PROTECTED] On Behalf Of Titi Alailima Sent: Tuesday, September 25, 2007 2:15 PM To: AOLSERVER@LISTSERV.AOL.COM Subject: [AOLSERVER] 404 redirects config in 4.5 I'm trying to configure AOLserver 4.5 for a custom 404 page, and my Config from previous versions is: ns_section ns/server

Re: [AOLSERVER] 404 redirects config in 4.5

2007-09-25 Thread Titi Alailima
Sent: Tuesday, September 25, 2007 2:36 PM To: AOLSERVER@LISTSERV.AOL.COM Subject: Re: [AOLSERVER] 404 redirects config in 4.5 On Tuesday 25 September 2007 11:15, Titi Alailima wrote: I'm trying to configure AOLserver 4.5 for a custom 404 page, and my Config from previous versions

Re: [AOLSERVER] Speaking of nsdci...

2007-08-09 Thread Titi Alailima
Back to the other discussion about community process, seems like some sort of mention on this list might get more input, and possibly help, for things in an initial development release phase. In depth discussion could go off-list, but just throwing out there that such a thing is being worked

Re: [AOLSERVER] aolserver focus

2007-08-09 Thread Titi Alailima
Dossy, or some other knowledgeable person, could you add something to the wiki about this, if only so that people know it's there, and can find out who to talk to/how to help if they're interested? This sounds extremely interesting to me although I don't quite yet understand what server-side

[AOLSERVER] Tcl exec hangs

2007-07-10 Thread Titi Alailima
Periodically some of our AOLserver installations get into a mode where all calls to exec just hang, not really taking up any processor time but eating up a thread. Doesn't seem to be any memory problems coinciding, which I had originally suspected being a limiting factor on the forks.