[AOLSERVER] ns_register_filter prequeue

2007-10-05 Thread Tom Jackson
There is a new filter point for ns_register_filter called prequeue. It isn't very useful because it runs in the driver thread, blocking the loop until it finishes with all prequeue filters that match. (There may actually be spins wasted on every request looking for matches, haven't checked

Re: [AOLSERVER] ns_register_filter problem: proc not found AOLserver HEAD

2003-03-03 Thread Tom Jackson
So I'm guessing noone else had this issue? Seems like filters are hosed. --Tom Jackson Tom Jackson wrote: I am running a minimum current checkout of AOLserver. My init.tcl file has the following: proc myfilter { } { ns_return 200 text/plain Hi there return filter_return } ns_register_filter

Re: [AOLSERVER] ns_register_filter problem: proc not found AOLserver HEAD

2003-03-03 Thread Peter M. Jansson
Sorry I didn't really read this sooner. I've got a preauth filter in my 4.0b2 setup, and it's working fine. I notice you declared your filter with no arguments, but I declared mine with this: proc some_filter { args } { Maybe it doesn't like being declared as having no arguments? Mine

Re: [AOLSERVER] ns_register_filter problem: proc not found AOLserver HEAD

2003-03-03 Thread Tom Jackson
Yes, got that, I took it out to test what the effect would be. But I did just verify that now when you have an incorrect number of arguments to a filter, AOLserver just logs the error and closes the connection. I'll check into the exact bug here. Must be a return code that is being over used.

[AOLSERVER] ns_register_filter problem

2003-02-17 Thread Ross Simpson
Hello, I'm trying to use ns_register_filter, and am running into difficulties. I have the following code in an init.tcl: ns_register_filter postauth GET /*/bob mqa.processHostedRequest ns_register_filter postauth POST /*/bob mqa.processHostedRequest mqa.processHostedRequest looks like

Re: [AOLSERVER] ns_register_filter problem

2003-02-17 Thread Dossy
On 2003.02.17, Ross Simpson [EMAIL PROTECTED] wrote: I'm trying to use ns_register_filter, and am running into difficulties. That's because you want to use ns_register_proc, not ns_register_filter. -- Dossy -- Dossy Shiobara mail: [EMAIL PROTECTED] Panoptic Computer

Re: [AOLSERVER] [MLIST] [AOLSERVER] ns_register_filter problem

2003-02-17 Thread David Walker
You want filter_return instead of filter_break filter_break just stops running filters and continues with the connection On Monday 17 February 2003 02:41 pm, Ross Simpson wrote: Hello, I'm trying to use ns_register_filter, and am running into difficulties. I have the following code in an

Re: [AOLSERVER] ns_register_filter problem

2003-02-17 Thread Ross Simpson
Dossy, The problem with ns_register_proc is that it expects the requested file to exist -- something I don't want. I want a proc run for any request matching a pattern, and after that proc runs, for the connection to be closed. David Walker's post about returning filter_return seems to have

Re: [AOLSERVER] ns_register_filter problem

2003-02-17 Thread Peter M. Jansson
On Mon, 17 Feb 2003, Ross Simpson wrote: The problem with ns_register_proc is that it expects the requested file to exist -- something I don't want. No it doesn't.

Re: [AOLSERVER] ns_register_filter problem

2003-02-17 Thread Dossy
On 2003.02.17, Ross Simpson [EMAIL PROTECTED] wrote: The problem with ns_register_proc is that it expects the requested file to exist -- something I don't want. I want a proc run for any request matching a pattern, and after that proc runs, for the connection to be closed. That's strange --

Re: [AOLSERVER] ns_register_filter problem

2003-02-17 Thread Tom Jackson
Dossy wrote: On 2003.02.17, Ross Simpson [EMAIL PROTECTED] wrote: The problem with ns_register_proc is that it expects the requested file to exist -- something I don't want. I want a proc run for any request matching a pattern, and after that proc runs, for the connection to be closed.

Re: [AOLSERVER] ns_register_filter

2001-05-24 Thread Jim Wilcoxson
I think you are putting the register filter commands in nsd.tcl, but nsd.tcl is a startup file and only certain commands are allowed. Instead, create a .tcl file with your register filter commands and procedures, and put that file in servername/modules/tcl Jim Hi. I'm trying to map user