On 5/29/09 10:48 AM, Francesco Petrarch wrote:
However, seemly at random times (for a random connection), [ns_adp_parse
-file /www/website/template.adp] will return an empty string.

Are you scouring your server log for any uncaught Tcl errors? Without knowing anything about your application code, if ns_adp_parse is consistently returning an empty string for a particular connection, then there's some application code that is connection-sensitive (thus, simply retrying the ns_adp_parse yields the same result consistently) that is probably resulting in an uncaught Tcl error that causes ns_adp_parse to return an empty string.

FYI, instead of the preauth filter, might I suggest you use this instead in your server's configuration .tcl:

    ns_section "ns/server/$server/adp"
    ns_param startpage /www/website/template.adp

It may not give you the same level of "control" as you are getting with the ns_adp_parse approach, but it might work better.

I also notice you don't register the same filter for HEAD requests. Was this intentional?

--
Dossy Shiobara              | [email protected] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to