[AOLSERVER] New nsjk2 Module Available

2003-03-31 Thread Nathan Folkman
The AOLserver Team is pleased to announce the availability of the preview release of the nsjk2 module for AOLserver. nsjk2 integrates generic Java Servlet and Java Server Page functions with ability to filter HTTP requests in AOLserver, route them to Tomcat, and route Tcl evaluation calls from Java to Tcl interpreters that live within AOLserver connection threads.

The source code has been submitted to the Jakarta Community for acceptance into the Jakarta core. We've decided to let everyone know about it now so that people can begin trying it out, and also in hopes of garnering some support for this module from those in the AOLserver Community who find it useful. In order to speed up the acceptance of this new module, we need your help. If this is something you'd be interested in using, please send an e-mail to the Jakarta Team ([EMAIL PROTECTED]) and let them know.

Until the code is formally accepted, you'll need to download it from here:

     http://issues.apache.org/bugzilla/show_bug.cgi?id=18283

Full documentation can be found here:

     http://www.aolserver.com/docs/nsjk2.pdf

Please refrain from submitting any bugs until the Jakarta Team has had a chance to set up an area in the Bugzilla database specifically for this module.

Many thanks to Alex Leykekh for all of his hard work on this module and corresponding documentation! Enjoy!

- 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] fix for Ns_MutexDestroy in 3.5 mutex.c

2003-03-31 Thread Jonathan Ellis
_mutexdestroy wasn't checking for a busy (locked by another thread) mutex:

-Jonathan
(Appologies if this is not the right forum, but the sourceforge patches
page doesn't look very busy.)

--- nsthread/mutex.c.oldMon Mar 31 15:28:01 2003
+++ nsthread/mutex.cMon Mar 31 15:34:54 2003
@@ -168,10 +168,15 @@
 {
 Lock   **lockPtrPtr;
 Lock   *lockPtr = (Lock *) *mutexPtr;
-int err;
+int err = EBUSY;

 if (lockPtr != NULL) {
-   err = pthread_mutex_destroy(&lockPtr->mutex);
+   /* spinwait until it's unlocked */
+   while (err == EBUSY) {
+   err = pthread_mutex_destroy(&lockPtr->mutex);
+   }
+   /* {0,EBUSY} is supposed to be the only valid return codes for _destroy,
+  but we'll check anyway */
if (err != 0) {
NsThreadFatal("Ns_MutexDestroy", "ptread_mutex_destroy", err);
}


--
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] AOLserver 4.x and MacOSX: cwd problem

2003-03-31 Thread Gabriel Ricard
http://www.apple.com/macosx/feedback is where i usually report any bugs
to apple. and most of the bugs i've reported through that page have
been fixed.
On Thursday, March 27, 2003, at 12:46  PM, Don Baccus wrote:

Zoran Vasiljevic wrote:
For all you Mac OSX users out there...

The Tcl8.4.x uses the OS-call realpath() to
figure-out the real physical path of the
file on the filesystem, stripped of all "./",
"../", constructs, symlinks and alike.
BANG: this function uses chdir/fchdir internally
which changes the process current working directory
for each invocation. It is called for just about
*every* path you pass to the Tcl library! Wow!
The funny thing: the man page does not care to
mention this *important* side-effect!
This is truly sick, Zoran.  Truly sick.  An extremely obnoxious
side-effect, even if it were documented.  Does Apple have a process for
filing bug reports that would give us some hope one of their Unix
hackers will see it?
--
Don Baccus
Portland, OR
http://donb.photo.net, http://birdnotes.net, http://openacs.org
--
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/


Re: [AOLSERVER] CGI memory leaks

2003-03-31 Thread Matthew Krenzer
Scott,

Here are the three different teset scripts we used

CGI:
-
#!/usr/local/bin/perl
use CGI;

my $string = "Simple Page";

$query = new CGI;

print $query->header;
print("$string");
$query->delete_all();
exit(0);
---

ADP (no exec):
---
<%
set string "Simple Page"
ns_return 200 text/html $string
%>
---

ADP w/ exec:
---
<%
set string "[exec date]"
ns_return 200 text/html $string
%>
---


The nsd.tcl file is attached.  I believe it is mostly the standard one
that comes w/ debian with a few tweeks to get CGIs enabled.

Thanks,
Matthew


On Fri, Mar 28, 2003 at 05:57:40PM -0600, Scott Goodwin wrote:
> Hi Matthew,
>
> Sounds like a memory leak in nscgi. Can you send me the perl script and
> your nsd.tcl file? I'll see if I can duplicate the problem, track it
> down and fix it.
>
> thanks,
>
> /s.
>
> On Friday, March 28, 2003, at 04:57 PM, Matthew Krenzer wrote:
>
> >I know this subject was addressed a while ago but I'm curious to know
> >if
> >there has been any resolution to this.
> >
> >We have setup a linux box running aolserver 3.5 w/ tcl 8.4.2 and have
> >performed the following tests:
> >
> >1. Running a very simple perl cgi
> >2. Running an ADP to do the same as the cgi
> >3. Running an ADP that execs a command
> >
> >We hammered the snot of the aolserver in each case and case 1 above
> >leaked
> >memory (about 2MB a minute at full throtle) - the other two did not
> >leak memory.
> >
> >In the previous thread it was mentioned that perhaps the leaks were
> >related
> >to 'exec' in a multithreaded app.  But in this case, execs from tcl
> >did not
> >result in a leak - only those for the CGI processing.
> >
> >Does anyone know what could cause this or what a potential solution
> >is?  (Of
> >course long term we will convert all of our cgis to adps, but that
> >will take
> >time - we'd like to switch out the webserver before then).
> >
> >Any information would be most welcome,
> >
> >Thanks,
> >Matthew
> >
> >
> >--
> >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 - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


nmd.tcl
Description: Tcl script