Re: [AOLSERVER] AOLSERVER and an infinite loop

2003-03-24 Thread Nathan Folkman
Couple of quick questions to help us help you:

- What version of the server are you using?
- Do you have a stack trace from the core file?
- Anything odd in the server log right before the crash (or did you
mean it never actually crashes)?
- Are you testing a C module you wrote, or some page code?
- Are you using mutex locks - maybe you are simply dead locked?
One other thing you could do is to check the connection thread stats -
if the endless loop is in your page code, it should be reasonably
isolated to the connection threads it was executed in. You can do this
from the control port:
server1:nscp 1> join [lsort [ns_info threads]] \n
...
-conn1- -nssock- 103 0 1048543624 connthread {320 10.4.44.252 running
GET /index.adp 2 0}
...
The second to last number (2 in this case) is elapsed time in seconds
for the request. You should see this number keep increasing for the
connection thread in question.
Another technique would be to add simple debug log notices before and
after suspect code:
ns_log notice "locking $lock ..."
ns_mutex lock $lock
ns_log notice "locked $lock ..."
# questionable code here

ns_log notice "unlocking $lock ..."
ns_mutex unlock $lock
ns_log notice "unlocked $lock ..."
- Nathan

On Monday, March 24, 2003, at 05:07 PM, Zamil Murji wrote:

I was wondering how AOLSERVER deals with an infinite loop.

I have reason to believe that I am getting stuck in an infinite loop
and am
trying to remedy this. AOLSERVER actually crashes or dies on me. So I
wonder if this is a symptom of my infinite loop.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] nsxml indent

2003-03-24 Thread Scott Goodwin
Send me the patch and tell me what the previous version was (i.e. is it
the current CVS copy that doesn't do what you expect?).
/s.

On Monday, March 24, 2003, at 02:35  PM, Daniel P. Stasinski wrote:

In the newest nsxml module, is there a way to produce indented
output rather than all on one line?  My patch to the previous
version no longer has any effect.
Daniel P. Stasinski
Software Engineer
Mayor Pharmaceutical Laboratories
[EMAIL PROTECTED]
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list:
http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


[AOLSERVER] AOLSERVER and an infinite loop

2003-03-24 Thread Zamil Murji
I was wondering how AOLSERVER deals with an infinite loop.

I have reason to believe that I am getting stuck in an infinite loop and am
trying to remedy this. AOLSERVER actually crashes or dies on me. So I
wonder if this is a symptom of my infinite loop.


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Bug: namespaces and ns_eval

2003-03-24 Thread Michael Richman
In a message dated 3/24/2003 2:39:21 PM Central Standard Time, [EMAIL PROTECTED] writes:

1. start 2  nscp sessions, and load above code snippet into 1 of them
with "ns_eval source ..." command
2. in 2nd session, run command "info command mytest::*". It is expected
to return mytest::mytest, but returns nothing. This is wrong.
3. start 3rd nscp session and run command "info command mytest::*". This
time return is correct.

Actually, what is happening here is that what you're describing as "2nd session" is a running thread at the time of the ns_eval of the first. It won't get your update until it exits. The same would be true of any code you ns_eval-ed there.

-- michael

__
michael richman 
princ software engineer
aol infrastructure dev
214.442.6048


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/



[AOLSERVER] nsxml indent

2003-03-24 Thread Daniel P. Stasinski
In the newest nsxml module, is there a way to produce indented
output rather than all on one line?  My patch to the previous
version no longer has any effect.

Daniel P. Stasinski
Software Engineer
Mayor Pharmaceutical Laboratories
[EMAIL PROTECTED]


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


[AOLSERVER] Bug: namespaces and ns_eval

2003-03-24 Thread Alexander Leyke
Hello,

I discovered that ns_eval command in control port doesn't process
namespaces correctly under AOLserver 4.0. Use case follows.


namespace eval mytest {}
proc mytest::mytest {} {}


1. start 2  nscp sessions, and load above code snippet into 1 of them
with "ns_eval source ..." command
2. in 2nd session, run command "info command mytest::*". It is expected
to return mytest::mytest, but returns nothing. This is wrong.
3. start 3rd nscp session and run command "info command mytest::*". This
time return is correct.
Thanks!
Alex
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Community Sites (why PHP?)

2003-03-24 Thread Nathan Folkman
Why not. ;-) The top AOlserver page is still being hosted on
SourceForge. There are plans to move the top page back to being
AOLserver hosted in the near future. AOLserver supports a number of
other languages in addition to Tcl, including PHP, Python, Java, and
others. I'm personally not all that familiar with the pro's and con's
of PHP as compared against these other languages, so I'd recommend
checking out their site for more info:  http://www.php.net.
- Nathan

On Monday, March 24, 2003, at 11:20 AM, Ayan George wrote:

Why would we use php?

-ayan


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Community Sites (why PHP?)

2003-03-24 Thread Ayan George
Why would we use php?

-ayan

On Mon, 24 Mar 2003, Nathan Folkman wrote:

> Follow the directions on this page to submit your site:
>
> http://www.aolserver.com/communitysites.php
>
> Thanks!
>
> - Nathan
>
>
> --
> AOLserver - http://www.aolserver.com/
> To Remove yourself from this list: http://www.aolserver.com/listserv.html
> List information and options: http://listserv.aol.com/
>


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


[AOLSERVER] Community Sites

2003-03-24 Thread Nathan Folkman
Follow the directions on this page to submit your site:

http://www.aolserver.com/communitysites.php

Thanks!

- Nathan

--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


[AOLSERVER] AOLserver 4.0 Beta release 4 now available

2003-03-24 Thread Mark Page
Beta release 4 of AOLserver 4.0 is now available with CVS tag aolserver_v4_r0_beta_4.
It is also available via the Source Forge download page:
  https://sourceforge.net/project/showfiles.php?group_id=3152&release_id=148480

Please report bugs via SourceForge at:
  https://sourceforge.net/tracker/?group_id=3152&atid=103152
with group "aolserver_v4_r0_beta_4"



Test On!


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/



[AOLSERVER] [AS 4.0 beta 3] Strange db pools error

2003-03-24 Thread Jean-Fabrice RABAUTE
Hi all,

I am getting troubles switching from AS3.2/Tcl7.6 to AS4.0/Tcl8.4.2

I have 3 pools configured in my config file : main, subquery and log.

Using nscp, when I run this code :

set a [ns_db gethandle main]
set b [ns_db gethandle subquery]

it runs fine under AS3.2/Tcl7.6, but crashes under AS4.0/Tcl8.4.2 saying :
thread already owns one handle from pool "subquery" on the second line !

It looks like the 3 pools are handled as the same pool under 4.0.
When I try "ns_db pools", I get "main subquery log" under 3.2 et 4.0 ...
so I am a little bit lost !

For info my config file looks like :


ns_section "ns/db/pools"
ns_param main "Oracle8 main database"
ns_param subquery "subquery"
ns_param log  "log"

ns_section "ns/server/fr.dev/db"
ns_param pools*
ns_param defaultpool  main


Thanks a lot for any tip.

Best Regards.

Jean-Fabrice RABAUTE
Core Services
http://www.core-services.fr
Mob: +33 (0)6 13 82 67 67


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/