Re: [AOLSERVER] AOLSERVER Digest - 3 Apr 2001 to 5 Apr 2001 (#2001-86)

2001-04-06 Thread Jim Davidson
In a message dated 4/6/2001 12:04:09 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: I believe, on my 4th attempt, I may have correctly implemented Zoran's patches to the 3.3.1 code to avoid the crash. snip Hopefully all is well now. This stuff has to work now - Tcl 7.6 has been

Re: [AOLSERVER] ns_cond, threads and file descriptors.

2001-04-19 Thread Jim Davidson
In a message dated 4/19/2001 12:03:25 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: From:Peter Harper [EMAIL PROTECTED] Subject: ns_cond, threads and file descriptors. I've been trying to find a solution to the following problem... I have two message queues in shared memory, one

Re: [AOLSERVER] AOLServer+ACS+Java = AOLServer+TCL?

2001-05-01 Thread Jim Davidson
, there are no plans to either discontinue support for Tcl nor engage in major architectural changes to support these technologies directly within AOLserver. However, others have extended AOLserver in such ways (e.g., support for Python and in-process Java VM's) using the existing C API. -Jim Jim Davidson

Re: [AOLSERVER] What parts of the ns_* API do you use the most?

2001-05-01 Thread Jim Davidson
In a message dated 4/30/2001 8:58:36 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: On 2001.04.30, Jim Davidson [EMAIL PROTECTED] wrote: [ ... ns_stats, command traces, nsd/tclstats.c, etc. ... ] I removed this from 4.x because it was being used much and requred an undocumented

Re: [AOLSERVER] Segfaults when running on port 80

2001-06-26 Thread Jim Davidson
In a message dated 6/26/2001 12:03:21 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: Date:Mon, 25 Jun 2001 19:02:54 -0500 From:Michael C. Urban [EMAIL PROTECTED] Subject: Re: Segfaults when running on port 80 On Mon, Jun 25, 2001 at 05:38:57PM -0500, Rob Mayoff wrote:

Re: [AOLSERVER] Ns_TclEnterSet - temporary vs. dynamic?

2001-12-10 Thread Jim Davidson
In a message dated 12/8/2001 1:17:17 AM Eastern Standard Time, [EMAIL PROTECTED] writes: When calling Ns_TclEnterSet, I'm confused about how to choose between NS_TCL_SET_TEMPORARY (0) and NS_TCL_SET_DYNAMIC (1). When I look at NsTclDbCmd (in dbtcl.c, AOLserver 3.3+ad13), I see that it uses

Re: [AOLSERVER] Access log format bug w/400 (Bad Request) errors

2002-01-13 Thread Jim Davidson
In a message dated 1/12/2002 12:02:57 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Date:Fri, 11 Jan 2002 18:49:55 -0800 From:Jim Wilcoxson [EMAIL PROTECTED] Subject: Access log format bug w/400 (Bad Request) errors Saw this today in my access log: XX.XX.XX.XX - -

Re: [AOLSERVER] C API question: how to tell if conn is closed?

2002-02-18 Thread Jim Davidson
In a message dated 2/18/2002 12:01:25 AM Eastern Standard Time, [EMAIL PROTECTED] writes: I'm writing some C code to handle HTTP header parsing inside of AOLserver (don't ask -- it's for CGI emulation inside of parsed Python scripts) and I'm running across a problem where a redirect is

Re: [AOLSERVER] File Uploading

2002-02-20 Thread Jim Davidson
In a message dated 2/20/2002 12:00:16 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Before you do and spend a lot of time coding form.tcl in C though, I would recommend seeing what the AOLServer head is doing. I didn't examine it closely, but it's only about 20 lines of Tcl now.

[AOLSERVER] Re:   How to crash AOLserver 3.4 in one line of tcl...

2002-08-31 Thread Jim Davidson
In a message dated 8/29/02 11:48:19 PM, [EMAIL PROTECTED] writes: Date:    Thu, 29 Aug 2002 15:46:57 +0100 From:    Harry Moreau [EMAIL PROTECTED] Subject: How to crash AOLserver 3.4 in one line of tcl... The line is ns_rwlock destroy rid0x83daf50 providing that rid0x83daf50 does

[AOLSERVER] Re:   ns_param SystemScope obsolete?

2002-08-31 Thread Jim Davidson
In a message dated 8/28/02 11:48:47 PM, [EMAIL PROTECTED] writes: Subject: ns_param SystemScope obsolete? Is the ns_param SystemScope obsolete? Grepping through both the 3.3+ad13 and 4.x (cvs head) sources, I don't see it anywhere.  It looks to me as if the thread scope is determined

Re: [AOLSERVER] NTPL on Linux

2002-09-24 Thread Jim Davidson
In a message dated 9/23/2002 11:42:19 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: What I would really like to see is a better wakeup mechanism so that all of the threads don't wake up at once when a new request comes in. I think that's how it works now in many cases, though don't know

Re: [AOLSERVER] Good reading: Yahoo moving to PHP

2002-10-30 Thread Jim Davidson
In a message dated 10/30/02 9:03:22 AM, [EMAIL PROTECTED] writes: The article mentions that they stayed away from Java because of the thread implementation on FreeBSD (presumably 4.x).  Given that AOLserver uses threads heavily, does anyone have experience running it under FreeBSD?  Is it OK? 

Re: [AOLSERVER] crashes related to insufficient stack space

2002-11-01 Thread Jim Davidson
In a message dated 11/1/2002 5:45:34 PM Eastern Standard Time, [EMAIL PROTECTED] writes: is there any way to catch crashes related to insufficient stack space and add a relevant entry in the server log to remove the guesswork from troubleshooting these? It might be possible to modify the thread

Re: [AOLSERVER] Use Tcl thread supprt instead of nsthread?

2002-11-02 Thread Jim Davidson
In a message dated 11/2/02 8:01:36 AM, [EMAIL PROTECTED] writes: I've examined the nsthread library as in AOLserver 4.0 and it seems to me that this piece of code can be re-rwritten to use Tcl thread wrappers. This would ease the task of people doing AOLserver ports on Windows, since most of

Re: [AOLSERVER] crashes related to insufficient stack space

2002-11-02 Thread Jim Davidson
In a message dated 11/1/02 6:33:35 PM, [EMAIL PROTECTED] writes: Except in my recent experiences the ONLY clearly insufficient stack space errors I have received come back to one of two things... 1)PHP and 2) the glibc upgrade in redhat doing something funky to the memory requirements causing

[AOLSERVER] AOLserver Project Update

2002-11-07 Thread Jim Davidson
high performance, dynamic web services. Thank you for your continued support! Jim Davidson Vice President Web Services Publishing America Online

Re: [AOLSERVER] high ASCII in regexp (AOLserver 3.5.1 tcl8.4.1)

2002-11-22 Thread Jim Davidson
In a message dated 11/22/2002 11:26:08 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Any idea what I'm doing wrong? I will double-check this here but I have to agree with Rob. The ncp channel is NOT encoding-aware. You should not interpret (test/make_conclusion/etc) based on typing into

Re: [AOLSERVER] high ASCII in regexp (AOLserver 3.5.1 tcl8.4.1)

2002-11-22 Thread Jim Davidson
In a message dated 11/22/2002 11:22:20 AM Eastern Standard Time, [EMAIL PROTECTED] writes: BTW, this is exactly the same problem that I described in http://dqd.com/~mayoff/encoding-doc.html two years ago. ...which, btw, is the guide I used add encoding support to aolserver 3.4 and 4.0. It's a

Re: [AOLSERVER] ns_puts or ns_adp_puts?

2002-12-04 Thread Jim Davidson
In a message dated 12/4/2002 5:23:41 PM Eastern Standard Time, [EMAIL PROTECTED] writes: Both of these commands exist, and will run the same code. I seem to recall that ns_puts is deprecated in favor of ns_adp_puts, for better naming consistency, but the code doesn't say, and the CVS log doesn't

Re: [AOLSERVER] Uid/Gid question in nsmain.c

2002-12-24 Thread Jim Davidson
In a message dated 12/24/2002 11:45:10 AM Eastern Standard Time, [EMAIL PROTECTED] writes: I'm looking at nsmain.c for the fun of it on Christmas Eve. I don't understand the difference in the code between the gid and the uid. It seems like the gid has to be less than zero before it is converted

Re: [AOLSERVER] Multiple Domains with one IP

2003-01-03 Thread Jim Davidson
Hello, Here's another variant which could be useful. AOLserver 4.0 allows you to load the nssock driver outside a specific virtual server and then map to virtual servers via the Host header. As with old 2.x virtual servers, you can then have separate virtual server configs, for example, separate

Re: [AOLSERVER] gzip compression

2003-01-05 Thread Jim Davidson
In a message dated 1/5/2003 1:45:26 PM Eastern Standard Time, [EMAIL PROTECTED] writes: Before investing a lot of time/energy into storing the gzip results, someone may want to do some benchmarks. For a low-volume site, nothing matters. On a high-volume site, storing a large cache of gzip results

Re: [AOLSERVER] 3.3+ad13 w/ Tcl 8.4.1 ?

2003-01-07 Thread Jim Davidson
In a message dated 1/6/03 8:59:58 PM, [EMAIL PROTECTED] writes: On Mon, Jan 06, 2003 at 01:54:05PM -0800, Jeff Hobbs wrote: Has anyone successfully built and used Tcl 8.4.1 (or any flavor of 8.4 for that matter) with AOLserver 3.3+ad13, or a similar AOLserver version (aka, pre-3.5)?  If

Re: [AOLSERVER] Why limiting the length of cache names to 32 characters

2003-01-08 Thread Jim Davidson
In a message dated 1/8/2003 9:27:50 AM Eastern Standard Time, [EMAIL PROTECTED] writes: I'am a co-developer of SMLserver, which is a Standard ML interpreter for AOLserver making it possible to script with Standard ML, see http://www.smlserver.org. Standard ML is a strict typed language, and we

Re: [AOLSERVER] adp parsers and aolserver 4.0

2003-01-20 Thread Jim Davidson
In a message dated 1/20/2003 12:39:46 PM Eastern Standard Time, [EMAIL PROTECTED] writes: I was perusing the AOLServer 4 source code over the weekend and I saw a note in nsd/adpparse.c which said that aolserver no longer supported custom ADP parsers. I can't recall the name of the package, but

Re: [AOLSERVER] Is Aolserver vulnerable?

2003-01-23 Thread Jim Davidson
In a message dated 1/23/2003 6:24:22 PM Eastern Standard Time, [EMAIL PROTECTED] writes: What portions do you think would make the most sense to support, and what benefits would supporting those features provide? Keep-alive enabled by default - allows persistent client/server connections without

Re: [AOLSERVER] 4.0 ClientData arg ??

2003-02-17 Thread Jim Davidson
In a message dated 2/15/2003 5:22:48 PM Eastern Standard Time, [EMAIL PROTECTED] writes: Could someone please explain the different uses of the "ClientData arg" parameter to the Nsv C functions in AOLserver 3.x vs. 4.0? Hi, In AOLserver 3.x, the ClientData was normally ignored or used to

Re: [AOLSERVER] 4.0 ClientData arg ??

2003-02-18 Thread Jim Davidson
In a message dated 2/17/2003 7:04:15 PM Eastern Standard Time, [EMAIL PROTECTED] writes: On Mon, Feb 17, 2003 at 06:44:05PM -0500, Andrew Piskorski wrote: Also, the Tcl procs I've defined don't seem to work in non-connection threads either. I definitely get "invalid command name" errors both in

Re: [AOLSERVER] ADP: are if's possible?

2003-03-16 Thread Jim Davidson
In a message dated 3/15/2003 5:42:15 PM Eastern Standard Time, [EMAIL PROTECTED] writes: This is a legal liability for me as my web page may display without important information in the case of a coding error. In my case it is much better to display an error than to display what appears to be a

Re: [AOLSERVER] Instability with [ns_server all] under moderate load?

2003-05-30 Thread Jim Davidson
In a message dated 5/29/2003 2:28:56 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: We have been trying to debug occasional (1-4 times/day) unexplained servercrashes under moderate load. Our most recent testing points fairly stronglyto the command "[ns_server all]" which occurs in a trace

Re: [AOLSERVER] Instability with [ns_server all] under moderate l oad?

2003-05-30 Thread Jim Davidson
In a message dated 5/29/2003 1:53:00 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Is this also true for all the other ns_server commands like [ns_server connections] or [ns_server active] ? Because we are using these extensivelyfor monitoring and performance analysis. It seems the only

Re: [AOLSERVER] Multipart form-data implementation in C?

2003-06-05 Thread Jim Davidson
In a message dated 6/4/2003 6:21:27 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: My question is whether there exists a C-implementation of something similarto ns_queryget. If not we will have to code it ourselves and obviously itwould be great if some one knows of open source C code that

Re: [AOLSERVER] Tcl shared channels

2003-07-05 Thread Jim Davidson
Hi, I wrote the ns_chan code -- not surprised it doesn't work because the implementation seemed dubious at the time. Moving forward, there's some code in tclsock.c which shares channels via dup'ing the underlying socket as Zoran suggested below. That seems to work but looks like a lot of

Re: [AOLSERVER] Tcl shared channels

2003-07-06 Thread Jim Davidson
Hi, This makes sense although I'd suggest a specific command to create the resource with a nameat startup.The use would then be similar to nsdb handles: at startup: set fp [open /my/file] ns_chan create myfile $fp in a thread: set fp [ns_chanregister myfile] ... use $fp as normal ...

Re: [AOLSERVER] aolserver4 bad file descriptor errors

2003-07-10 Thread Jim Davidson
Hi, Seems like firstClosePtr at least is protected -- there's an informatively named Ns_Mutex defined: static Ns_Mutex lock; /* Lock around close list and shutdown flag. */ and then in NsSockClose: voidNsSockClose(Sock *sockPtr, int keep){ ... Ns_MutexLock(lock); if (firstClosePtr ==

Re: [AOLSERVER] aolserver4 bad file descriptor errors

2003-07-10 Thread Jim Davidson
In a message dated 7/10/2003 12:17:03 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: But what about SockAccept and SockRelease, they do not use lock mutexbut update firstClosePtr.I have small communication driver so those errors may not be related tofirstClosePtr. Hi, I think that

Re: [AOLSERVER] Loading two copies of nssock?

2003-07-28 Thread Jim Davidson
In a message dated 7/28/2003 6:49:28 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: Hi all,Are there any gotchas I should be aware of when loading 2 copies of nssock(on different IP addresses) in 1 AOLserver? I'm using 3.3+ad13Thanks,Brian Nope -- you should have no problems. The

Re: [AOLSERVER] Ns_SetRequestAuthorizeProc has no Tcl Command

2003-11-03 Thread Jim Davidson
In a message dated 11/3/2003 12:02:18 AM Eastern Standard Time, [EMAIL PROTECTED] writes: But I'm still a little confused. I thought all you had to do to add a new authentication method was to use the Ns_SetRequestAuthorizeProc to provide a pointer to a custom C function. The point where this

Re: [AOLSERVER] Jim's Sunday commits and AOLserver 4.1

2003-11-17 Thread Jim Davidson
In a message dated 11/17/2003 12:02:51 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Well, I guess it's official -- Jim's committed the first set of changesmarking AOLserver 4.1. From the ChangeLog, it looks like the core ofthe changes revolves around request processing and I/O. What

Re: [AOLSERVER] Jim's Sunday commits and AOLserver 4.1

2003-11-18 Thread Jim Davidson
In a message dated 11/18/2003 12:03:27 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Subject: Re: Jim's Sunday commits and AOLserver 4.1On 2003.11.17, Jim Davidson [EMAIL PROTECTED] wrote: Glad somebody noticed the new code :) The changes to kick of 4.1 were in two areas: 1. Adding an I/O

Re: [AOLSERVER] Jim's Sunday commits and AOLserver 4.1

2003-11-19 Thread Jim Davidson
PROTECTED] writes: Subject: Re: Jim's Sunday commits and AOLserver 4.1 On 2003.11.17, Jim Davidson [EMAIL PROTECTED] wrote: Glad somebody noticed the new code :) The changes to kick of 4.1 were in two areas: 1. Adding an I/O event callback interface for connections before they are queued

Re: [AOLSERVER] HTTP_RAW_POST_DATA equivalent in AOLSERVER TCL

2003-12-04 Thread Jim Davidson
In a message dated 12/1/2003 12:04:20 AM Eastern Standard Time, [EMAIL PROTECTED] writes: I would like to ask if there is an equivalent of PHP's $HTTP_RAW_POST_DATAglobal variable in AOLSERVER using TCL.$HTTP_RAW_POST_DATA gets an entire form post in raw format. This allows agreat

Re: [AOLSERVER] nsd and memory leaks

2004-01-10 Thread Jim Davidson
In a message dated 1/10/04 12:03:58 AM, [EMAIL PROTECTED] writes: A dynamic content server tends to grow in our experience, and I've always assumed that's because of heap fragmentation problems - not necessarily leaks.  Just restart your server once a day/week. Yes -- memory fragementation

Re: [AOLSERVER] nsd and memory leaks

2004-01-12 Thread Jim Davidson
In a message dated 1/11/2004 12:03:36 AM Eastern Standard Time, [EMAIL PROTECTED] writes: It seems that one way to address this memory/heap problem is to force threads to exit after a certain amount of time idle, freeing their entire heap area. There is code in AS to do that, but I've never

[AOLSERVER] Re:  tomcat aolserver redirector

2004-02-07 Thread Jim Davidson
In a message dated 2/7/04 12:02:17 AM, [EMAIL PROTECTED] writes: Date:    Fri, 6 Feb 2004 19:14:48 -0500 From:    Andrew Piskorski [EMAIL PROTECTED] Subject: Re: tomcat aolserver redirector On Fri, Feb 06, 2004 at 03:44:02PM -0700, Nathaniel H wrote: I'm looking for an AOLserver to tomcat

Re: [AOLSERVER] ns_logctl expansion?

2004-03-08 Thread Jim Davidson
In a message dated 3/8/2004 12:01:47 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Date: Sun, 7 Mar 2004 12:35:26 -0800From: Tom Jackson [EMAIL PROTECTED]Subject: Re: ns_logctl expansion?On Sun, 2004-03-07 at 11:06, Zoran Vasiljevic wrote: Oh, misunderstanding...Zoran, no I

[AOLSERVER] ANN: New project leader for AOLserver

2004-05-20 Thread Jim Davidson
Hi, I would like to formally announce that effective immediately, Dossy Shiobara will be taking over the role of Project Leader for AOLserver. He will be responsible for all aspects of the project, ensuring that it continues to move forward and gets the attention it currently needs to

Re: [AOLSERVER] AOLserver on Suse 64-bit AMD Opteron

2004-07-07 Thread Jim Davidson
In a message dated 7/7/2004 6:34:44 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: Does anybody successfully run AOLserver on 64-bit AMD Opeteron?I've compiled AOLserver 4.0.5 on Suse Linux running on 64-bit AMDOpteron without any problems.But AOLserver doesn't start, only

Re: [AOLSERVER] [ 517267 ] Patch for SEGV if 401 redirect is used

2004-07-14 Thread Jim Davidson
In a message dated 7/13/2004 5:58:33 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: On Tue, Jul 13, 2004 at 05:14:05PM -0400, Dossy wrote: Basically, the 3.x release is officially in support and maintenance mode, and new development will should only be done in the 4.x tree. How

Re: [AOLSERVER] AOLSERVER Digest - 10 Aug 2004 to 11 Aug 2004 (#2004-171)

2004-08-13 Thread Jim Davidson
In a message dated 8/12/2004 3:02:14 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Has anyone tried to get the asp style ADP parser originally written in like 1999 or 2000 by some guys at AM Computers working with Aolserver 4? The source file was nsAspStyleAdps.c. It

Re: [AOLSERVER] AOLSERVER Digest - 13 Aug 2004 to 14 Aug 2004 (#2004-174)

2004-08-16 Thread Jim Davidson
In a message dated 8/15/2004 1:25:36 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: BTW: It turns out the code to make this work, outside the various config junk, wasn't to complicated. Basically it required calling a function to collapse all the blocks together at the end

Re: [AOLSERVER] Writing custom ADP Parsers

2004-12-16 Thread Jim Davidson
In a message dated 12/15/04 6:15:33 PM, [EMAIL PROTECTED] writes: I'm trying to build a restricted execution environment for ADP pages, and to make a clean break with the current code base, I want a new parser for ADP pages for some of my web pages. Poking through the AOLServer docs, I found

Re: [AOLSERVER] ns_adp_compress: apply gzip to outgoing ADP buffer

2005-01-10 Thread Jim Davidson
In a message dated 1/10/05 2:58:04 PM, [EMAIL PROTECTED] writes: But since the work is/will-be underway to make the adp's gzip savvy I thought why not making the built-in ns_return also? What about the original rl_returnz/ns_returnz modules being incorporated into the distribution? Hi,

Re: [AOLSERVER] ns_adp_compress: apply gzip to outgoing ADP buffer

2005-01-10 Thread Jim Davidson
In a message dated 1/10/05 3:27:42 PM, [EMAIL PROTECTED] writes: If try to use nsreturn [ns_gzip ...] the special handling for encodings won't be done correctly (that's my guess anyway, not having looked at the code).  You really need to do all the encoding jive before compressing. Yes --

[AOLSERVER] Re: [AOLSERVER] memory leak in 4.0.9?  (Long message.)

2005-01-15 Thread Jim Davidson
In a message dated 1/14/05 6:55:31 PM, [EMAIL PROTECTED] writes: Naive question: What if you just purposely crash AOLserver?  Will Valgrind tell you what you want then? There are probably known ways to make AOLserver crash just from Tcl, but it's especially easy if you're willing to write a

Re: [AOLSERVER] Is AOLserver/Tcl 64-bit capable?

2005-01-31 Thread Jim Davidson
In a message dated 1/31/05 1:53:53 PM, [EMAIL PROTECTED] writes: I don't know how interesting this is to most folks, but I know it's important to a few of us.  To us, this is fantastic news, I think. Excellent! There are likely other aspects of AOLserver which may need to be updated to

Re: [AOLSERVER] New Config API's which document default values.

2005-03-01 Thread Jim Davidson
In a message dated 3/1/05 7:52:22 PM, [EMAIL PROTECTED] writes: I had the timely fortune of needing to replace my crashed hard drive this weekend and I noticed a program being installed called 'indent'. Indent is a program which reformats the whitespace of C source code. Given a series of

Re: [AOLSERVER] New Config API's which document default values.

2005-03-07 Thread Jim Davidson
In a message dated 3/6/05 11:08:33 AM, [EMAIL PROTECTED] writes: In my own experience reading AOLserver code, what I'd really wished for was more comments explaining WHY something was being done, as opposed to merely what or how.  (I suspect I've rambled on about this in the past...) Andrew

Re: [AOLSERVER] New Config API's which document default values.

2005-03-07 Thread Jim Davidson
In a message dated 3/7/05 11:33:52 AM, [EMAIL PROTECTED] writes: On Mon, Mar 07, 2005 at 12:38:58PM -0500, Andrew Piskorski wrote: On Mon, Mar 07, 2005 at 10:10:15AM -0500, Jim Davidson wrote: I'm thinking Tcl init and connection handling and garbage collection can be complicated

Re: [AOLSERVER] Google's perftools and TCMalloc

2005-04-01 Thread Jim Davidson
In a message dated 3/31/05 9:12:15 PM, [EMAIL PROTECTED] writes: But, (there's always a "but",) it appears that TCMalloc is a wholesale-retail allocator just like our Zippy (aka Tcl's threaded memory allocator).  In other words, it would seem that using TCMalloc won't offer us any performance

Re: [AOLSERVER] Leaky AS/Tcl memory allocator

2005-04-06 Thread Jim Davidson
In a message dated 4/6/05 1:44:46 PM, [EMAIL PROTECTED] writes: OK. Now, please, whoever wrote this "zippy" (whatever that means) can you please see what is going on? Or at least give me some hint where to start digging. I need to get rid of this "side effect" Hi, I wrote zippy and

Re: [AOLSERVER] Leaky AS/Tcl memory allocator

2005-04-06 Thread Jim Davidson
In a message dated 4/6/05 5:23:58 PM, [EMAIL PROTECTED] writes: Am 06.04.2005 um 22:31 schrieb Dossy Shiobara: Zoran, if you have some time, could you try building Tcl 8.4.0 with the threaded memory allocator and see if your tests show whether the same memory growth problem exists or not?

Re: [AOLSERVER] Leaky AS/Tcl memory allocator -- Tcl 8.4.7 the culprit

2005-04-07 Thread Jim Davidson
In a message dated 4/7/05 4:48:52 AM, [EMAIL PROTECTED] writes: This is the one. More precisely the unix/tclUnixThrd.c as of 8.4.7 (and later) looks like: void TclpFreeAllocCache(ptr)      void *ptr; {      extern void TclFreeAllocCache(void *);      TclFreeAllocCache(ptr);      /*       *

Re: [AOLSERVER] Caching parsed ns_adp_parse -string results

2005-04-12 Thread Jim Davidson
In a message dated 4/12/05 10:06:54 AM, [EMAIL PROTECTED] writes: thanks for all your responses! I'm sorry I wasn't too clear about my problem. I don't want to cache the results of calling ns_adp_parse -string $my_string since parts of the result page contain request specific parts. What I

Re: [AOLSERVER] interpreter lifecycle

2005-05-28 Thread Jim Davidson
Howdy, I've been following this thread the last few days -- great discussion. Let me add a few points and suggest how we can move forward. First, I'm responsible for the current approach of initializing Tcl interps in AOLserver and I agree with Zoran -- it's clumsy. Aside from failure on my

Re: [AOLSERVER] interpreter lifecycle

2005-05-28 Thread Jim Davidson
In a message dated 5/28/05 11:37:23 AM, [EMAIL PROTECTED] writes: 3. Use the package interface along with ns_ictl to manage state clearly, e.g., replace the confusing code in bin/init.tcl with the following and expect folks to own this config for their own install as they do with nsd.tcl:

Re: [AOLSERVER] Ns_ConnReadLine return codes

2005-06-17 Thread Jim Davidson
In a message dated 6/11/05 2:17:01 PM, [EMAIL PROTECTED] writes: I can not find any 'return NS_OK' in nsd/connio.c::Ns_ConnReadLine. There are just two occurences of 'return NS_ERROR'. Is it so intentionally? Stupid bug -- I fixed it and checked it into the head version. Together with it,

Re: [AOLSERVER] PHP works, but content-length is zero

2005-06-18 Thread Jim Davidson
In a message dated 6/18/05 11:35:09 AM, [EMAIL PROTECTED] writes: I'm playing around with the php module (libphp5.so). Using a browser, I get nothing displayed, so I telnetted in and I get the desired page, but the content length header is set to zero: HTTP/1.0 200 OK X-Powered-By: PHP/5.0.4

Re: [AOLSERVER] Ns_ConnReadLine return codes

2005-06-19 Thread Jim Davidson
In a message dated 6/19/05 5:51:32 AM, [EMAIL PROTECTED] writes: My reason for the 'maxline' usage is to cut off strange kiddies e.g., ones that try to exploit ms-iis bugs on any server. Ah -- then check for maxline in driver.c. I found the following config: if (!Ns_ConfigGetInt(path,

Re: [AOLSERVER] New features in the next version of AOLServer

2005-06-25 Thread Jim Davidson
Hi, We should put a page on aolserver.com with some details. We've moved the version to 4.5 from 4.1 to reflect the scope of changes. Scanning the ChangeLog and from what I can recall: * New connection management features including the ns_limits and ns_pools commands: -- ns_limits: control #

Re: [AOLSERVER] New features in the next version of AOLServer

2005-06-26 Thread Jim Davidson
Yup -- agreed, default has to be no-caching to be backwards compatible. I think that's how the code works -- at least that was my goal but I could have screwed it up :) I'll take a look. -Jim On Jun 25, 2005, at 10:20 PM, Dossy Shiobara wrote: On 2005.06.25, Jim Davidson [EMAIL PROTECTED

Re: [AOLSERVER] New features in the next version of AOLServer

2005-06-27 Thread Jim Davidson
Hi, The cache is actually a bit complex to follow -- I'll add some comments to help describe. Basically: -- Each thread maintains a cache of ADP code which includes per- interp byte codes and pointers to text regions in a shared area. When all threads no longer point to the shared text, it's

Re: [AOLSERVER] Problem building 4.0.10 on FC4

2005-06-27 Thread Jim Davidson
Odd -- I caught this error just last night and fixed. I'll checkin later today or tomorrow. I think it's a more strict warning for gcc4.0 -- the code has technically worked for years :) -jim On Jun 26, 2005, at 8:46 PM, Janine Sisk wrote: I started out with this error: conn.c: In

Re: [AOLSERVER] Problem building 4.0.10 on FC4

2005-06-27 Thread Jim Davidson
Ah -- sorry -- didn't read that far. As for the second error, the problem is the _np in pthread_kill_other_threads_np which means non-portable. It's an old API in LinuxThreads to kill all threads in the process-based threads which pre-date modern Linux kernels. The fix is to simply remove the

Re: [AOLSERVER] New features in the next version of AOLServer

2005-06-28 Thread Jim Davidson
On Jun 28, 2005, at 11:01 AM, Dossy Shiobara wrote: On 2005.06.28, Bas Scheffers [EMAIL PROTECTED] wrote: I have never use ns_cache before, but it seems to me there is no way to store something in the cache from Tcl, is that the case? Would it be possible to implement? See the stand-alone

Re: [AOLSERVER] POST file upload using multipart/form-data in C

2005-07-01 Thread Jim Davidson
Fred, Yup -- there are a few places in the code where there's a Tcl API without a corresponding C API. And, the docs are out of date, especially in the C API. Happily the code is generally readable although that's a crappy answer to the poor docs. Anyway, in this case we'd need a few things:

Re: [AOLSERVER] POST file upload using multipart/form-data in C

2005-07-02 Thread Jim Davidson
On Jul 1, 2005, at 4:59 PM, Fred Cox wrote: --- Jim Davidson [EMAIL PROTECTED] wrote: Fred, Yup -- there are a few places in the code where there's a Tcl API without a corresponding C API. And, the docs are out of date, especially in the C API. Happily the code is generally readable

Re: [AOLSERVER] Thread safe version of Ns_ConnReturnOpenFd()?

2005-07-18 Thread Jim Davidson
Hi, You're right -- it's not thread safe. Two options: 1. Add the offset length parameters and have the server use pread as you suggest (not sure about the equivalent on win32). I suppose this would technically not be backward compatible in case someone was expecting the current seek

Re: [AOLSERVER] Thread safe version of Ns_ConnReturnOpenFd()?

2005-07-18 Thread Jim Davidson
the other code changes including some routines to get at the uploaded files in C -Jim On Jul 18, 2005, at 5:11 PM, Fred Cox wrote: --- Jim Davidson [EMAIL PROTECTED] wrote: Hi, You're right -- it's not thread safe. Two options: 1. Add the offset length parameters and have the server

[AOLSERVER] Checked in some code

2005-07-18 Thread Jim Davidson
Hi, I just checked in several changes to the 4.5 HEAD branch. The ChangeLog was updated with some notes. Briefly: - Finished up support for large content in temp-files. - Added new routines to access uploaded files in C, e.g., Ns_ConnGetFile - Added a new ns_cache command based on ideas

Re: [AOLSERVER] Server not stopping properly

2005-07-19 Thread Jim Davidson
This should be in the code now -- check the shutdownPending static var in nsd/sched.c. The behavior should be that as soon as shutdown begins, this flag is set an no new sched procs can be created or kicked off. There could be a bug in there. Of course if a thread-based proc is running

Re: [AOLSERVER] access log getting wiped

2005-07-22 Thread Jim Davidson
The code, Ns_RollFile, is pretty set on no more than 999 files right now. And, In the case you actually have 999 files, it does a lot work shuffling them down. Perhaps it would be better to just have the default be the time format stuff which doesn't need to do all the shuffling in the

Re: [AOLSERVER] AOLserver 4.x ADP parser

2005-08-23 Thread Jim Davidson
Hi, The patch would need to be updated as the underlying code has changed. Otherwise, I'm inclined to just restore the previous behavior unless I'm missing something. Does anyone have a reason why the new behavior is preferred to the old or was this all just something I screwed up

Re: [AOLSERVER] Batteries included AOLserver distribution

2005-08-24 Thread Jim Davidson
Turns out I spent a lot of time getting those -rpaths and - install_name things to work :) Oh well. Anyway, seems like three cases: - Mac OS/X -- without -install_name, it burns in the current build directory -- I think install_name_tool can be used at install time to reset. - On

Re: [AOLSERVER] Batteries included AOLserver distribution

2005-08-25 Thread Jim Davidson
Dynamic link is best -- there was a lot of effort recently to get all that working right recently, with modules as small stubs that call into the dll's located in the lib/ directory and such. -Jim On Aug 25, 2005, at 10:00 AM, Olaf Mersmann wrote: Another issue I am undecided on is

Re: [AOLSERVER] Build/installation complexity with AOLserver 4 (for package maintainers) (was Re: [AOLSERVER] Batteries included AOLserver distribution)

2005-08-25 Thread Jim Davidson
Nate's working on some config stuff as well -- would be good to coordinate the efforts and get it into the core distribution. -jim On Aug 25, 2005, at 9:52 AM, Olaf Mersmann wrote: * Jim Davidson [EMAIL PROTECTED] [050825 15:24]: *snip* 7. would also be good if something

Re: [AOLSERVER] Build/installation complexity with AOLserver 4 (for package maintainers) (was Re: [AOLSERVER] Batteries included AOLserver distribution)

2005-08-25 Thread Jim Davidson
Folks, OK -- so it sounds like we have the following goals: 1. sources need to be configurable and buildable in the source directory 2. final install location needs to be part of the config for all the - rpath junk 3. install/copy step needs to bypass the final install location and copy to

Re: [AOLSERVER] Build/installation complexity with AOLserver 4 (for package maintainers) (was Re: [AOLSERVER] Batteries included AOLserver distribution)

2005-08-25 Thread Jim Davidson
Ugh -- that thing was a mess and hard to maintain. Better to start over. -Jim On Aug 25, 2005, at 11:22 AM, Nathan Folkman wrote: On Aug 25, 2005, at 11:12 AM, Dossy Shiobara wrote: On 2005.08.25, Nathan Folkman [EMAIL PROTECTED] wrote: $ bin/tclsh84 ./nsconfig.tcl -debug -modules

Re: [AOLSERVER] Batteries included AOLserver distribution

2005-08-25 Thread Jim Davidson
Yup -- that's what I understood the question to be and agree, link against the dynamic libraries. -Jim On Aug 25, 2005, at 10:53 AM, Dossy Shiobara wrote: On 2005.08.25, Jim Davidson [EMAIL PROTECTED] wrote: Dynamic link is best -- there was a lot of effort recently to get all

Re: [AOLSERVER] AOLServer 4.0.10 and Mac OS X 10.4.6

2006-06-02 Thread Jim Davidson
I just checked in the fix which is really just to disable the configure check for poll on OS/X, thus not setting the HAVE_POLL cdef and defaulting to the poll emulation code used on OS/X in the past. So, update, re-config, and rebuild -- should work now. For those curious, it appears that

Re: [AOLSERVER] AOLserver 4.0(.10) memory usage

2006-06-02 Thread Jim Davidson
Folks, Nate and I spent a lot of time -- frankly, far too much time -- chasing this down a few months back. We ended up completely re- writing the multi-threaded allocator with features to reclaim memory, fix stats counters which in the current code are broken and lie, and added an alloc

Re: [AOLSERVER] Embed Tcl inside registered ADP tag?

2006-06-02 Thread Jim Davidson
... (result of Tcl) ... /mytag Steve, Yes, the order in which tags are parsed was changed between 3.x and 4.0.x, unfortunately. Jeremy Collins filed an RFE to change it back in September 2004, but it hasn't been done yet: http://aolserver.com/sf/rfe/1030577 Jim Davidson tells me he made

Re: [AOLSERVER] New release?

2006-06-22 Thread Jim Davidson
Hi,Here's what we've got on 32bit systems:sizeof(char) = 1sizeof(short) = 2sizeof(int) = 4sizeof(long) = 4sizeof(void *) = 4On 64bit we've got:sizeof(char) = 1sizeof(short) = 2sizeof(int) = 4sizeof(long) = 8sizeof(void *) = 8i.e., int is always 4 bytes, long is the size of a pointer and is either

Re: [AOLSERVER] New release?

2006-06-26 Thread Jim Davidson
Hi, If I remember correctly, the issue was linking aolserver 4.5 with the Tcl provided by FC5? The result was an error with multiple defined _init? I tried to reproduce this but couldn't locate the tclConfig.sh for the Tcl in FC5 required by the configure script. As Nate mentioned,

[AOLSERVER]

2006-07-06 Thread Jim Davidson
Hi, I just checked in a fix for this -- try again and let me know if it's still broken. -Jim On Jul 6, 2006, at 9:18 AM, Nathan Folkman wrote: If you haven't already, would you mind filing this as a bug against 4.5 over at SourceForge? I set up a new category for 4.5 bugs. I'll try to

Re: [AOLSERVER] crash in AOLServer 4.5.0, after exiting threads

2006-11-01 Thread Jim Davidson
Hi, I think this is related to the comment I added to the RELEASE notes: * Loading libnsd into a tclsh and then creating new threads with the ns_thread command will result in a crash when those threads exit. The issues has to do with finalization of the async-cancel context used to support the

[AOLSERVER] aolserver focus

2007-08-03 Thread Jim Davidson
Howdy folks, Seems like we're having another flare-up of frustration on the list... I left AOL about a year ago and haven't had much time to contribute since. I probably wrote (re-wrote and wrote again) 90% of the code and had several teams hacking Tcl code for dozens of AOL web sites

Re: [AOLSERVER] aolserver focus

2007-08-09 Thread Jim Davidson
Hi, After reading through all the responses to my aolserver focus post, it seems to me Thorpe's comments below are the most realistic and actionable, i.e., it's the documentation / getting started stuff that's insufficient. Otherwise, technically there are a few things that could be

Re: [AOLSERVER] New modules on aolserver.am.net; also we are looking to hire a full-time AOLserver programmer

2007-09-27 Thread Jim Davidson
This reminds me of the Smarty for PHP. Has anyone looked at porting Smarty to ADP? It's pretty PHP-specific but the syntax, like Tom's stuff below, is pretty convenient. http://smarty.php.net/ -Jim On Sep 25, 2007, at 10:50 AM, Tom Jackson wrote: Jeff, I developed a templating

  1   2   >