[AOLSERVER] Question re ns_register_filter trace

已查看 5 次
跳至第一个未读帖子

Thorpe Mayes

未读,
2012年6月4日 12:05:472012/6/4
收件人 aolserv...@lists.sourceforge.net
Hi,

I have a simple (minded) question re ns_register_filter:

How do I disable this?

Remove the file and restart the server?

Here is my code:

proc active_user_filter {why} {
...
return filter_ok
}

if {![info exists active_user_filter_p]} {
set x [ns_register_filter trace GET * active_user_filter]
nsv_set . active_user_filter_p 1
}

Thanks,

Thorpe

Thorpe Mayes
tma...@ecognizant.com
405.514.9753




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
aolserver-talk mailing list
aolserv...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk

Jeff Rogers

未读,
2012年6月5日 13:02:512012/6/5
收件人 Thorpe Mayes、aolserv...@lists.sourceforge.net
Yes, there is no way to remove a filter other than by restarting the
server. The best you can do without restarting is to redefine the
filter proc to be a no-op.

-J

Thorpe Mayes wrote:
> Hi,
>
> I have a simple (minded) question re ns_register_filter:
>
> How do I disable this?
>
> Remove the file and restart the server?
>
> Here is my code:
>
> proc active_user_filter {why} {
> ...
> return filter_ok
> }
>
> if {![info exists active_user_filter_p]} {
> set x [ns_register_filter trace GET * active_user_filter]
> nsv_set . active_user_filter_p 1
> }


Thorpe Mayes

未读,
2012年6月5日 22:26:082012/6/5
收件人 Jeff Rogers、aolserv...@lists.sourceforge.net
Hi Jeff,

Thanks for the reply.

That is what I assumed, but needed some confirmation.

Really appreciate your response.

Thanks,

Thorpe
Thorpe Mayes
tma...@ecognizant.com
405.514.9753
回复全部
回复作者
转发
0 个新帖子