[AOLSERVER] code patch to enable default filename extension

2006-04-15 Thread John Buckman
= ns_strdup(ds2.string); Once you're happy with the patch you can remove the Ns_Log line. /* john buckman added 4/14/06 */ /* check if should add default filename extension of .adp */ /* only if no / on end of url which indicates a directory */ char * dotpos; if (ds2.string[ds2.length - 1

Re: [AOLSERVER] code patch to enable default filename extension

2006-04-15 Thread John Buckman
On Apr 15, 2006, at 4:07 pm, dhogaza@PACIFIER.COM wrote: I'm pretty sure my code below is harmless and appears bug-free... Well, it would break OpenACS. If such a feature is added, it should be optional and configurable. What I was suggesting was a new optional parameter in config.tcl:

Re: [AOLSERVER] code patch to enable default filename extension

2006-04-15 Thread John Buckman
One thing I'm not clear on (patch doesn't include enough detail) is if a directory url has to come in with a / in order to be considered a request for a directory. Usually a redirect should be issued if there is a directory corresponding to the url , like you don't have to put the / on the

[AOLSERVER] init.tcl created commands aren't in ADP interpreters

2006-04-16 Thread John Buckman
I'm running into a problem where new Tcl commands that BerkeleyDB makes in init.tcl are not available in adp interpreters. Specifically, if I do something like this in init.tcl: berkdb open -create -btree a.db a new command db0 is now in the tcl interpreter, and [info commands] shows it

Re: [AOLSERVER] per-interpreter globals possible?

2006-04-18 Thread John Buckman
On Apr 17, 2006, at 6:37 PM, Andrew Piskorski wrote: On Mon, Apr 17, 2006 at 10:47:45AM +0100, John Buckman wrote: ns_cache creates a per-thread global, which is not quite the same thing, as sometimes the same thread will use a different interpreter. Hm, under what circumstances have you

Re: [AOLSERVER] code patch to enable default filename extension

2006-04-18 Thread John Buckman
On Apr 17, 2006, at 3:43 PM, carl garland wrote: Why can't you just do this in your config file: ns_section ns/server/${servername}/adp ns_param map * ;# Any extension can be mapped. This should not interfere with deliverty of any registered mime types and should be as fast if

Re: [AOLSERVER] per-interpreter globals possible?

2006-04-18 Thread John Buckman
On Apr 17, 2006, at 2:46 PM, Andrew Piskorski wrote: On Mon, Apr 17, 2006 at 10:47:45AM +0100, John Buckman wrote: Is there any way in AOLSserver 4 to have per-tcl-interpreter global variables? You already do. Tcl global variables are per-thread, which is also per-interpreter. I don't

[AOLSERVER] build nsd w/o locking?

2006-04-18 Thread John Buckman
Is it possible to build AOLServer in a single-threaded, lock-free manner? Because BerkeleyDB's tcl interface isn't thread safe, I'm running aolserver in single-thread mode, with ns_param maxthreads 1 ApacheBench shows me getting 440 page requests per second, on an ADP page that does a

Re: [AOLSERVER] build nsd w/o locking?

2006-04-18 Thread John Buckman
On Apr 18, 2006, at 10:32 am, Andrew Piskorski wrote: On Tue, Apr 18, 2006 at 08:46:39AM +0100, John Buckman wrote: Is it possible to build AOLServer in a single-threaded, lock-free manner? My guess is the only remotely plausible way, short of redesigning and reimplementing everything from

Re: [AOLSERVER] build nsd w/o locking?

2006-04-18 Thread John Buckman
On Apr 18, 2006, at 9:55 am, Bas Scheffers wrote: You need to look into environments in the Berkely DB system. The way I see it, you should be able to have concurrent access to one database from many threads in AOLserver. The -threads command, which enables thread safety in Berkeley DB

Re: [AOLSERVER] per-interpreter globals possible?

2006-04-19 Thread John Buckman
How can you know exactly what variables to clean up in each namespace? Even the cleanup for the global namespace doesn't completely wipe out all variables. This is exactly the problem we ran into when thinking about how we could better support Tcl namespace variables in AOLserver 4.5. The

[AOLSERVER] config file example of multihome config?

2006-04-29 Thread John Buckman
I'm struggling to configure AOLserver to support multiple web sites, with independent TCP/IP addresses. Can someone attach a config file example of multihoming? The config file seems to support it, but there are both server- specific and global mentions of TCP/IP address and port #, so it's

Re: [AOLSERVER] config file example of multihome config?

2006-04-30 Thread John Buckman
On Apr 30, 2006, at 12:57 AM, Wojciech Kocjan wrote: Dnia 30-04-2006 o 00:42:30 John Buckman [EMAIL PROTECTED] napisał: I'm struggling to configure AOLserver to support multiple web sites, with independent TCP/IP addresses. Can someone attach a config file example of multihoming

Re: [AOLSERVER] config file example of multihome config?

2006-04-30 Thread John Buckman
On Apr 30, 2006, at 10:46 AM, Tom Jackson wrote: John, Here is an example which covers virtual servers using multiple nssocks, and the same nssock for multiple virtual servers. http://rmadilo.com/m2/multi-server-example/ There is a static config at the top of

Re: [AOLSERVER] No Makefile.module in cvs

2006-05-07 Thread John Buckman
On May 7, 2006, at 9:54 AM, Bas Scheffers wrote: Just playing with with CVS version, but when trying to build nspostgres I noticed there is no Makefile.module anymore. Is this a bug or a new feature the nspostgres driver hasn't been updated for yet? I build aolserver from source a few

Re: [AOLSERVER] No Makefile.module in cvs

2006-05-07 Thread John Buckman
I built aolserver from source a few days ago, and the current CVS seems to have the following problems: 1) Makefile.module and Makefile.global are missing 2) all the util/*.tcl files are missing a #!/usr/local/bin/ tclsh (or equivalent) first line, enabling them to run as tcl scripts, so

[AOLSERVER] socket errors in log with CVS HEAD

2006-05-08 Thread John Buckman
In running CVS head, I'm getting the following socket errors on both linux and osx: 08/May/2006:09:17:04][11946.42009600][-nssock:driver-] Error: 2705: recv failed3: Connection reset by peer [08/May/2006:09:17:04][11946.42009600][-nssock:driver-] Error: 2706: recv failed3: Connection reset

[AOLSERVER] replacing default connection unauthorized message

2006-06-06 Thread John Buckman
if my ADP page runs % ns_returnunauthorized ns_adp_abort ok % AOLserver returns the default message: Access Denied The requested URL cannot be accessed because a valid username and password are required. I'd like to replace this message with my own page, which would have helpful

[AOLSERVER] 404 redirect

2006-06-21 Thread John Buckman
I'm trying to redirect 404 not found pages to the home page. The annotated config file shows this as: ns_section ns/server/${servername}/redirects ns_param 404 /index.adp ;# Not Found error page but this isn't having any effect for me. Can someone suggest how to go about debugging

Re: [AOLSERVER] 404 redirect

2006-06-21 Thread John Buckman
On Jun 21, 2006, at 10:53 am, Bas Scheffers wrote: John Buckman said: I'm trying to redirect 404 not found pages to the home page. The annotated config file shows this as: Are you sure you want to do this? This is very confusing for users! I personally hate this when I come acros a site

Re: [AOLSERVER] gzip compression

2006-06-26 Thread John Buckman
Having said that, the preferred future direction seems to be ns_adp_compress: http://sourceforge.net/tracker/index.php? func=detailgroup_id=3152atid=353152aid=1099613 Does this gzip option work with the AOLserver source in the current CVS tree? I tried it, and added the recommended

Re: [AOLSERVER] build nsd w/o locking?

2006-07-03 Thread John Buckman
I think that there are developers who are not familiar or comfortable with SQL and database management systems. This can lead to a number of bad choices if you are trying to develop a system which needs to store, select and maintain data. Also, using a DBMS never precludes the opportunity to

Re: [AOLSERVER] build nsd w/o locking?

2006-07-03 Thread John Buckman
How do you mean included? Actual code that is run? One of the things where AOLserver completely blows PHP out of the water is that PHP has to re-interpret everything on every page. So if you include a library and only use one function from it... AOLserver's library Tcl code is just there at no

Re: [AOLSERVER] Scaling at the high end

2006-07-03 Thread John Buckman
that once you cross it, the characteristics of the problem set changes and the optimal (and sometimes only) solutions become very specialized. It's at this end of the spectrum where AOLserver truly shines, but it's a very small set. In general, my experience is that the simplest tool for

[AOLSERVER]

2006-07-06 Thread John Buckman
Now... if I visit a bogus url, I *still* receive the default aolserver not found page. If I visit /404.adp directly, I successfully get the sorry not found message. So, the redirects section seems to have no affect at server startup. I've tried a few other methods with the same

[AOLSERVER] cvs head build problem

2006-08-07 Thread John Buckman
Tried to build CVS head today on two linux machines, and had to make the following patches to get it to build: inserted #!/usr/local/bin/tclsh to util/nsmakeall.tcl util/nsremove.tcl util/nsinstall.tcl all 3 tcl files were missing a stated interpreter to use and caused the build to fail. I

Re: [AOLSERVER] cvs head build problem

2006-08-07 Thread John Buckman
On Aug 7, 2006, at 6:10 PM, Dossy Shiobara wrote: On 2006.08.07, John Buckman [EMAIL PROTECTED] wrote: The modifications to util/*.tcl stated above seem critical and the CVS head should be so patched. The build is still kinda shaky. In theory, you could build like this (on Debian

Re: [AOLSERVER] cvs head build problem

2006-08-08 Thread John Buckman
Cookies require a P3P header now? Yes, the default security prefs as of IE6 are to discard cookies at exit that don't have a compact privacy declaration indicating that you won't share their information with anyone. Ever wonder why some sites seem to forget your cookies, and some are

[AOLSERVER] ns_cache size-limited by default?

2006-08-15 Thread John Buckman
It seems like ns_cache is -size limited by default -- is that correct? This isn't documented, that I can tell. Am I right that the default is: size = 1024 * 1000; It seemed to me, from the docs, that an ns_cache was not size-limited by default, and thus could expand indefinitely. -john

[AOLSERVER] question about libnsd loading in tclsh

2006-08-15 Thread John Buckman
In the 4.5 release docs, it was announced: libnsd: The AOLserver library now includes an entry point suitable for loading into an ordinary, thread-enabled, tclsh, e.g.,: # tclsh % load /usr/local/aolserver/lib/libnsd.so % ns_time Does this loaded libnsd.so share locks, such

[AOLSERVER] cron (ie, timed) jobs in aolserver

2006-08-15 Thread John Buckman
Anyone have any advice on how to run tasks on a scheduled basis within the aolserver process? Currently, I use cron to run lynx http://bookmooch.com/ nightlyjobs.adp, and that works fine, but was wondering if there was an all-aolserver way, that was more elegant. -john -- AOLserver -

[AOLSERVER] Tcl interpreter bloating

2006-08-31 Thread John Buckman
On my bookmooch.com site, I'm noticing that my nsd process adds about 300mb of memory usage every day, requiring a restart once a week after I approach my 2gb memory limit. I'm trying to fix this. One theory I have is that the Tcl interpreters are slowly bloating. A simple test.adp page I

Re: [AOLSERVER] Tcl interpreter bloating

2006-08-31 Thread John Buckman
an anti-tcl-bloat feature. Note also that many modern OSes don't return memory to a process until a thread exits, in order to minimize semaphore locking around malloc() (Windows does this, and I think Solaris has added it too) -john On Aug 31, 2006, at 10:55 AM, John Buckman wrote

[AOLSERVER] nsdb dropping handles?

2006-09-02 Thread John Buckman
Has anyone ever had any problems with nsdb slowly losing database handles, so that eventually ns_db gethandle never returns? I'm working with Vlad to track down that kind of problem, that we're assuming is in his BerkeleyDB/nsdb driver, but I thought I'd ask if anyone's had that problem

Re: [AOLSERVER] AOLserver's documentation woes and its future

2006-09-05 Thread John Buckman
Perl thread safety has never been properly debugged. In fact, that was the reason I moved from Perl to Tcl many years back. I had assumed that Python had fixed the global semaphore thing from when I looked at it 8 years ago, but no. Ok, Dossy, I buy your argument that the other pop

Re: [AOLSERVER] AOLserver's documentation woes and its future

2006-09-05 Thread John Buckman
On Sep 5, 2006, at 6:00 PM, Jeff Hobbs wrote: One thing I really miss in the Aolserver/Tcl world is a good debugger -- puts isn't such a good alternative :D. Javascript, I believe, has nice development environments and debuggers available. It'd also be nice to have a wider world of source

[AOLSERVER] connected socket pool

2006-09-06 Thread John Buckman
I'd like to keep a permanently connected socket connection to another machine, with each aolserver thread having a socket that is already connected to that other app. I tried using the namespace trick to keep a global around, like so: namespace eval sbuff {} proc mysockget {} { global

Re: [AOLSERVER] Tcl interpreter bloating

2006-09-29 Thread John Buckman
So did setting connsperthread take care of the bloating? I keep seeing assertions that memory use by AOLserver should level off at some steady state - perhaps controlled by this parameter. But I have yet to see any one come back and say I changed X to Y and now my server doesn't behave

Re: [AOLSERVER] Tcl interpreter bloating

2006-09-29 Thread John Buckman
Your problem is most likely the Tcl memory allocator, and fragmentation that can occur within the pools. There have been some posts detailing these issues a few months ago I think. Ah, ok. One thing to try is building Tcl so that it doesn't use the threaded-allocator, and to instead try

Re: [AOLSERVER] Tcl interpreter bloating

2006-09-30 Thread John Buckman
FYI, Berkeley DB's Tcl binding isn't truly thread-safe: http://dossy.org/archives/000307.html I'm not using their Tcl binding, as it's not even close to thread safe. I'm using Vlad's BerkeleyDB/aolserver nsdb driver. However, that may be leaky, so what I was going to do is make a

Re: [AOLSERVER] Tcl interpreter bloating

2006-09-30 Thread John Buckman
I still have been unable to get nsproxy to work. Did you try that thing I sent you a few weeks back? (Basically nsproxy would work for a few minutes and then crash the server) FYI, nsproxy worked fine for me under macosx and linux. I believe Rusty may be running it under windows (can

Re: [AOLSERVER] Tcl interpreter bloating

2006-09-30 Thread John Buckman
This morning my server complained: unable to alloc 2169111 bytes and thus exited. So, I'm thinking that malloc fragmentation may very well be the problem. I read recently that the connsperthread parameter no longer works in aolserver. I believe this parameter destroys a Tcl interpreter and

Re: [AOLSERVER] Tcl interpreter bloating

2006-09-30 Thread John Buckman
Yes, I prototyped exactly that, and it worked, and yield only a 4x slowdown in database fetch time, rather than the 18x slowdown that the RPC mechanism yielded. However, I probably won't initially use that technique, as I first want to see where the bloat problem is. Uh, if you use nsproxy to

Re: [AOLSERVER] Tcl interpreter bloating

2006-10-02 Thread John Buckman
On Oct 2, 2006, at 11:10 PM, Nathan Folkman wrote: [EMAIL PROTECTED] wrote: This morning my server complained: unable to alloc 2169111 bytes How large was the nsd process when it crashed? Not sure how big, I wasn't around. But, nsd regularly grows to 2gb, and I usually shut it down around

[AOLSERVER] build problem with extension

2006-10-10 Thread John Buckman
I'm having a problem loading the berkeley db extension, built on MacOSX/Intel, that I haven't had on MacOSX/PowerPC, gcc 4.01. The reason I'm inquiring here (and not with Vlad, who doesn't know either) is it seems like a general compiler/platform issue Aolserver, on load displays this error:

Re: [AOLSERVER] build problem with extension

2006-10-11 Thread John Buckman
/BerkeleyDB.4.4/lib/ -lbdb -lnsdb and then aolserver ran happily with my module, and nm shows all the functions correctly exposed. -john On Oct 10, 2006, at 6:30 PM, John Buckman wrote: I'm having a problem loading the berkeley db extension, built on MacOSX/Intel, that I haven't had on MacOSX

[AOLSERVER] mutex try lock?

2007-02-22 Thread John Buckman
I'm looking to have mutexes with timeouts, and I see support in the C code for this but none carried over to Tcl. In the C code, there's a Ns_MutexTryLock() function, but no tcl function for calling it. Ns_MutexLock calls Ns_MutexTryLock() and there appears to be timeout support: if

Re: [AOLSERVER] mutex try lock?

2007-02-22 Thread John Buckman
pm, John Buckman wrote: I'm looking to have mutexes with timeouts, and I see support in the C code for this but none carried over to Tcl. In the C code, there's a Ns_MutexTryLock() function, but no tcl function for calling it. Ns_MutexLock calls Ns_MutexTryLock() and there appears

Re: [AOLSERVER] mutex try lock?

2007-02-23 Thread John Buckman
On Feb 23, 2007, at 8:31 AM, John Buckman wrote: Should also get around to implementing ns_mutex eval $mutex $script--acquire the mutex, evaluate the script, release the mutex. Catch any Tcl errors and re-throw them. This guarantees that the mutex is unlocked, which avoids the trivial

Re: [AOLSERVER] mutex try lock?

2007-02-23 Thread John Buckman
So, the question becomes: is it better to add -timeout time to all the blocking subcommands, or to add ns_mutex trylock? In theory, -timeout 0 should perform the trylock equivalent. I'd vote for -timeout on all lock requests, as that way I get both the see if lock is available

[AOLSERVER] tdom leak fix

2007-02-28 Thread John Buckman
FYI, on the tdom leak, I found that my app (BookMooch) was leaking as well (thanks for mentioning the leak problem you're having, it helped me find mine), and the reason is that tdom NEVER automatically releases memory for the documents it creates (the docs say the document object command

[AOLSERVER] unclean shutdown

2007-03-15 Thread John Buckman
My shutdowns of aolserver are rarely clean, nsd usually crashes on shutdown. I've started running nsd inside gdb, so I can see where the crash is. Here is a stack trace on a ctrl-c, using the latest cvs source. If there's anything else I can do to help track down these unclean shutdowns,

Re: [AOLSERVER] unclean shutdown

2007-03-16 Thread John Buckman
On Mar 16, 2007, at 6:13 AM, Dossy Shiobara wrote: On 2007.03.15, John Buckman [EMAIL PROTECTED] wrote: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x0004 [Switching to process 4464 thread 0x4613] 0x0a00c254

Re: [AOLSERVER] unclean shutdown

2007-03-16 Thread John Buckman
On Mar 16, 2007, at 2:50 PM, Dossy Shiobara wrote: On 2007.03.16, John Buckman [EMAIL PROTECTED] wrote: What patchlevel of Tcl? 8.4.14 - current release. What modules are you loading? Are you using any of the Tcl async. stuff (introduced in 4.5) in your application code? I don't

Re: [AOLSERVER] unclean shutdown

2007-03-17 Thread John Buckman
On Mar 17, 2007, at 5:24 AM, Dossy Shiobara wrote: On 2007.03.16, John Buckman [EMAIL PROTECTED] wrote: package require Tclx Good, that confirms my guess. From your previous stacktrace: (gdb) where #0 0x0a00c254 in Tcl_AsyncDelete () #1 0x00649500 in SignalCmdCleanUp () #2 0x0a00f35e

[AOLSERVER] easy way to tell all tcl interps to exit next time?

2007-04-04 Thread John Buckman
Can someone suggest an easy way to tell aolserver to reload its tcl interps at the next opportunity? What I basically need is a way to run ns_markfordelete for every tcl interpreter nsd has open. http://panoptic.com/wiki/aolserver/Ns_markfordelete When I push out a new version of BookMooch

Re: [AOLSERVER] easy way to tell all tcl interps to exit next time?

2007-04-04 Thread John Buckman
On Apr 4, 2007, at 3:01 PM, Rusty Brooks wrote: would ns_eval [ns_markfordelete] work? ns_eval runs a bit of tcl code in each thread. See, I knew there ought to be an easy way! Thanks! Thanks Dossy Rusty! Personally, I don't use packages/package require, I have an init script that loads

[AOLSERVER] profiling an aolserver site

2007-04-11 Thread John Buckman
I'm wondering if anyone on this list has written code to profile a web site running under Aolserver. By this, I mean, timing the start/stop time of every page, logging it, and then running a bit of analysis to find out what pages are the slowest running and which pages are the most

Re: [AOLSERVER] profiling an aolserver site

2007-04-11 Thread John Buckman
On Apr 11, 2007, at 9:00 AM, patrick o'leary wrote: Something that might be of use is the tcl-lib profiler http://www.tcl.tk/community/tcl2004/Tcl2003papers/kupries-doctools/ tcllib.doc/profiler/profiler.html Which gives a little insight into proc calls. Might be of use to you, obviously

Re: [AOLSERVER] profiling an aolserver site

2007-04-13 Thread John Buckman
/2.0.0.3 0.106342 192.168.1.129 - - [11/Apr/2007:10:46:28 -0400] GET /favicon.ico HTTP/1.1 404 534 Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en- US; rv: 1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 0.000361 On 4/11/07, John Buckman [EMAIL PROTECTED] wrote: I'm wondering if anyone on this list has

Re: [AOLSERVER] ns_zlib compress

2007-04-19 Thread John Buckman
On Apr 19, 2007, at 10:11 AM, Rusty Brooks wrote: I don't believe you can use ns_return with binary data. By the way, are there any plans to change that? Or make a ns_return_binary or something? I have a lot of code that writes to a file and then does ns_returnfile ns_write is what you

Re: [AOLSERVER] ns_zlib compress

2007-04-20 Thread John Buckman
I have ns_param gzip on , but do i still need to set some headers ? I don't know. How do i know its gzipping anything ? telnet www.yourwebserver.com 80 And send a GET request. That won't invoke compression unless you include the appropriate Accept-encoding header. You need to sent a

Re: [AOLSERVER] ns_zlib compress

2007-04-21 Thread John Buckman
How do you enable gzip page compression on ns_register_proc pages? The adp gzip compression occurs in C code, in Ns_ConnFlush(), which checks for Accept-Encoding: gzip Since a ns_register_proc uses ns_return, like this: ns_return $conn 200 text/html $html I believe it's bypassing this gzip

[AOLSERVER] learning from naviserver

2007-08-02 Thread John Buckman
So, in the spirit of open source software meritocracies: please place your money where your mouth is. Come up with a list of actionable changes you'd make if you were king. Lets hear it--and if everyone agrees to a particular change, we'll declare it made. (Note: declaring anything to a

Re: [AOLSERVER] configured minthreads, maxthreads doesnt show up with [ns_server threads] command

2007-08-03 Thread John Buckman
On Aug 3, 2007, at 3:39 PM, [EMAIL PROTECTED] wrote: Please watch the vulgar language - there's simply no need for it. And precisely who are you to say so? He's someone who is trying to keep the discussion civil and productive, and trying to be helpful. Really, I think it's best to

Re: [AOLSERVER] aolserver focus

2007-08-03 Thread John Buckman
I'm wondering -- does it make sense to just try to close the gap with LAMPP as a model, driving to the batteries-included distro Dossy's been talking about for years? That seems to me like a project tons of folks could contribute too -- from docs to extensions to installers, etc. On new

Re: [AOLSERVER] aolserver focus

2007-08-03 Thread John Buckman
On new aolserver installations, I install the ActiveState batteries included tcl version, and then copy over all the libraries it has (which is a *lot*) into aolserver's tcl directory (in my case /usr/local/), which makes for an extremely capable AolServer/tcl distro. hmm.. it might

Re: [AOLSERVER] aolserver focus

2007-08-03 Thread John Buckman
On Aug 3, 2007, at 8:41 PM, Rick Cobb wrote: John, does this distro's Http package work well within AOLServer? We did a cURL integration for AOLServer 3.4.2, but have been holding off on any contribution because it's very intertwined with our C++ stuff -- and figured that one reason the

[AOLSERVER] two OSX bugs

2007-08-06 Thread John Buckman
I've had these two bugs for a while on OSX, thought I'd report them. I'm running today's current CVS. -- Bug #1: nszlib causes abort trap on OSX. 007:23:52:46][16387.2684407808][-main-] Notice: modload: loading '/ usr/local/aolserver/bin/nszlib.so'

Re: [AOLSERVER] two OSX bugs

2007-08-06 Thread John Buckman
I banged on this thread-time-crash-on-OSX bug a bit, and found that setting ns_param threadtimeout 1 ;# Idle threads die at this rate gets rid of this problem. While setting ns_param threadtimeout 0 ;# Idle threads die at this rate or ns_param threadtimeout 1

Re: [AOLSERVER] aolserver focus

2007-08-07 Thread John Buckman
Idle curiosity - I wonder if anyone is running a system with both apache and aolserver listening on port 80 on different ifs/ips. Should be possible and not even difficult, tho probably of limited utility. Yes, I have setups like this and is the best solution to this problem. However, in

Re: [AOLSERVER] aolserver focus

2007-08-08 Thread John Buckman
On 2007.08.07, John Buckman [EMAIL PROTECTED] wrote: I use AOLserver + lighthttpd on the same machine, different IPs, so that mp3s and GIF/JPEGs are fed off lighthttpd, which is stupid and very fast (it's wikipedia's media server) Out of curiousity--have you benchmarked lighttpd vs. AOLserver

Re: [AOLSERVER] aolserver focus

2007-08-08 Thread John Buckman
Or as an alternate answer: use apache itself as the proxy. The poor saps who subject themselves to PHP will be happy and the OACS users can have a real system to work with. Are there any caching proxy plugins for aolserver? I have cheap bandwidth in other countries, which I'd like to

Re: [AOLSERVER] async background delivery

2007-08-08 Thread John Buckman
as far as what lighthttpd and mathopd are doing to get better speeds, is that they both are not multithreaded, they are just a single async loop, serving static files. I remember that this was an option in Aolserver v2, but I believe it went away in v3. Gustaf Neumann of WU-Wien patched

Re: [AOLSERVER] Speaking of nsdci...

2007-08-11 Thread John Buckman
On Aug 9, 2007, at 2:07 AM, Nathan Folkman wrote: A variant is used in production, although it's not exactly the same. Can you say more about variant? There's only a couple of us working on updating this code at the moment, but I'd be more then happy to add anyone to the project who is

Re: [AOLSERVER] Switching to Trac to manage the AOLserver project?

2007-08-30 Thread John Buckman
After looking more closely at Trac [1], I'm really thinking it might be a good idea to use it to manage the AOLserver project. Does anyone have any strong feelings about this, particularly against it? I think this is a great idea. -john -- AOLserver - http://www.aolserver.com/ To Remove

[AOLSERVER] 64bit crashes right away

2007-09-11 Thread John Buckman
Is there any special trick to getting aolserver to work on 64bit linux? A stock nsd crashes right away (strace below). I'm using Linux www64 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 GNU/Linux The only change I made from the cvs tree was the previously mentioned

Re: [AOLSERVER] 64bit crashes right away

2007-09-11 Thread John Buckman
Thanks for the tip. That gets me more-or-less working, though now document over a few kb stick. Here is what I did for a configure statement to stop crashing: ./configure --prefix=/usr/local/aol3 --enable-64bit --enable-threads --enable-shared --with-tcl=/usr/local/lib I also did: export

Re: [AOLSERVER] 64bit crashes right away

2007-09-13 Thread John Buckman
On Sep 12, 2007, at 9:47 PM, Tom Jackson wrote: Below is my configure and lib information. On Wednesday 12 September 2007 07:42, Dossy Shiobara wrote: On 2007.09.12, John Buckman [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:~# /lib/libc.so.6 What about /lib64/libc.so.6? And, what's ldd nsd

Re: [AOLSERVER] AOLserver on 64-bit Linux

2007-09-24 Thread John Buckman
I'm not sure if my post is off-topic, but when I did compile Aolserver in my x86-64 machine I had problems with TCL, tDOM (not Aolserver). You can see my problem in: http://openacs.org/forums/message-view? message_id=369867 It was a problem I had installing Aolserver. I think it doesn't

[AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-25 Thread John Buckman
I did some benchmarks of aolserver vs lighthttpd on plain files of various sizes, on my 8cpu 64 bit server. For 3 runs, with a 4k text file, the lighthttpd stats were 15103.87/ s, 14845.20/s and 15307.17/s, vs (as Dossy reports http://dossy.org/ archives/000517.html) aolserver's 15237.00/s.

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-25 Thread John Buckman
www64:/b# ab -c 5 -n 5 http://images.bookmooch.com/x.txt Since your machine is a 2-CPU 8-core box, could you try runs with -c 8 and -c 16? It may have no effect, but it'd be nice to know that for sure. I get more-or-less the same numbers at -c 8, -c 16 and -c 32, varying about 100

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-27 Thread John Buckman
Hmm--I'm not sure what you're thinking of or referring to, but the common optimization is to use sendfile(2), which seems to be alive and well in the 2.6 tree. Whoops, you're right, I just remembered a sysadmin email about sendfile not existing on the kernel we're using. Hmm... Sendfile

[AOLSERVER] caching tcl pages with tcl access to mark the cache as dirty

2007-09-27 Thread John Buckman
Does a module exist that does this: - register a Tcl function for a given URL, ie /photo/* - and specifying an ns_cache for the resulting rendered page - so that C code completely handles successive requests for that URL - and so that if the back-end data changes, the ns_cache can be marked as

[AOLSERVER] UTF/asian charset in urls

2007-09-28 Thread John Buckman
Does anyone know what these $map(%E7%A7%8B) things are in URLs when asian-UTF characters are used? Ie, typing into a search form on aolserver (BookMooch) for the japanese character 秋 converts it to http://bookmooch.com/m/s/$map(%E7%A7%8B) That $map looks like an array lookup, but I've

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-28 Thread John Buckman
On Sep 28, 2007, at 8:43 AM, John Buckman wrote: My solution to that problem was simply caching in the filesystem and serving static files. The way this works in a multi-server environment is that the custom 404 handler figures out the request was for /photo/123/axbcgsfdt.jpg and just grabs

[AOLSERVER] code for 404 pattern (aka static cache)

2007-09-29 Thread John Buckman
Bas Scheffers was kind to share his 404-pattern code with me (ie, a custom 404 handler to enable static caching of frequently requested files), which I used to write my own. It's not rocket science, but since I asked the question, I thought I'd share my code, in case anyone else finds it

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-29 Thread John Buckman
jackson On Tuesday 25 September 2007 00:50, John Buckman wrote: I did some benchmarks of aolserver vs lighthttpd on plain files of various sizes, on my 8cpu 64 bit server. For 3 runs, with a 4k text file, the lighthttpd stats were 15103.87/ s, 14845.20/s and 15307.17/s, vs (as Dossy reports http

Re: [AOLSERVER] code for 404 pattern (aka static cache)

2007-09-30 Thread John Buckman
On Sep 29, 2007, at 11:00 PM, Jeff Rogers wrote: John Buckman wrote: Bas Scheffers was kind to share his 404-pattern code with me (ie, a custom 404 handler to enable static caching of frequently requested files), which I used to write my own. It's not rocket science, but since I asked

Re: [AOLSERVER] all interps reload?

2007-11-02 Thread John Buckman
On Nov 2, 2007, at 3:56 PM, Rusty Brooks wrote: I use ns_eval, which can be used to run a command in all interpreters. Honestly, though, I don't fool around with packages much with aolserver... I mostly have directories, and a proc that will recursively go through them, starting at a

Re: [AOLSERVER] all interps reload?

2007-11-02 Thread John Buckman
Can you describe what you are trying to achieve and how you test to see that it isn't working? It would be nice to see some working code/ configuration to supplement the documentation. Quite simply, I prefer aolserver interps to load the source once, keep it in memory in parsed form. This

Re: [AOLSERVER] Google Summer of Code

2008-02-29 Thread John Buckman
On 2008.02.28, Matthew M. Burke [EMAIL PROTECTED] wrote: I am convinced we could attract some students, but I don't want to commit unless there's at least a little more positive response. Another possibility is that I know Clif Flynt, Jeff Hobbs and other Tcl folks are putting together an

[AOLSERVER] aolserver 64bit

2008-02-29 Thread John Buckman
I my case... My only desire would be getting AOLServer to work perfectly on 64bit platforms. I have not heard of anyone that has AOLServer working on it with a decent load (more than 10K hits / day) on a 64 bits platform and do not restart it for at least 1 month. Aolserver/64bits works

Re: [AOLSERVER] Google Summer of Code

2008-02-29 Thread John Buckman
On Fri, Feb 29, 2008 at 05:41:44PM +0100, Juan Jos? del R?o [Simple Option] wrote: In my case I run AOLServer with customized code on top of it. No OpenACS. No modules except nspostgres. In 32 bits it works like a charm. No memory leaks. It simply works (damn fast!). Hm, so you see

Re: [AOLSERVER] aolserver 64bit

2008-02-29 Thread John Buckman
2006 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-52 AuthenticAMD GNU/Linux tom jackson On Friday 29 February 2008 09:34, John Buckman wrote: I my case... My only desire would be getting AOLServer to work perfectly on 64bit platforms. I have not heard of anyone that has AOLServer working

Re: [AOLSERVER] Compiling 4.5 on Mac OS X 10.5 leopard issues

2008-03-22 Thread John Buckman
I suspect the problem might have been that you didn't enable threads on tcl. I've never had any problems building aolserver on OSX 8.4.x on powerpc or intel. But, you know that now... -john On Mar 22, 2008, at 8:44 PM, Mark Aufflick wrote: Thanks Gustaf, I had trouble with cvs head

Re: [AOLSERVER] Compression

2008-04-08 Thread John Buckman
On Apr 8, 2008, at 1:54 PM, Brett Schwarz wrote: So, from my reading, its seems as though that in 4.5, we got on the fly ADP page compression. However, it seems as though there isn't comparable functionality for Tcl files (i.e. ns_return). I know there are some work arounds, but I was just

[AOLSERVER] can someone make this change

2008-04-09 Thread John Buckman
Can someone make this change in CVS: the utils/*.tcl files in CVS all need: #!/usr/local/bin/tclsh prepended at the top. Currently, they don't have this, and thus are run as shell scripts. They also need their permissions to be executable. I know we've switched to a tcl-building method,

Re: [AOLSERVER] can someone make this change

2008-04-09 Thread John Buckman
John Buckman schrieb: the utils/*.tcl files in CVS all need: #!/usr/local/bin/tclsh prepended at the top. Currently, they don't have this, and thus are run as shell scripts. hmm, shouldn't this be a /usr/bin/env tclsh instead? This looks to be the way it should be done (from tests/new

[AOLSERVER] large file uploads

2009-11-18 Thread John Buckman
I'm developing a music submission system for Magnatune.com using aolserver and I'm seeing some problems with large file uploads. Specifically, aolserver periodically crashes due to a malloc error. It looks like aolserver stores files being uploaded (via form enctype=multipart/form-data) in

  1   2   >