Re: [AOLSERVER] More with the Chinese translations...

2009-06-25 Thread Stephen Deasey
On Fri, Jun 26, 2009 at 12:04 AM, Janine Siskjan...@furfly.net wrote: set translated_page_body [encoding convertto gb2312 $page_body] This isn't going to work. It's not the encoding of the characters you need to change but the characters themselves. You want to do the equivalent of this: %

Re: [AOLSERVER] More on caching content...

2009-04-23 Thread Stephen Deasey
On Thu, Apr 23, 2009 at 7:40 PM, Janine Sisk jan...@furfly.net wrote: Trying again... anyone???  Bueller? :) Is this tc2sc conversion software actually any good? I remember you were having the same problem 18 months ago, and you said that the company that wrote the software has gone out of

Re: [AOLSERVER] problem getting binary data from C to a tcl object to an aolserver connection

2008-08-28 Thread Stephen Deasey
On Thu, Aug 28, 2008 at 9:50 AM, Mark Aufflick [EMAIL PROTECTED] wrote: Hi all, If I Ns_Log() the data in a (char *) I can clearly see that it contains newlines, and I can also verify that it contains nulls with memchr. I have tried any number of ways to turn it into a tcl object, eg:

Re: [AOLSERVER] problem getting binary data from C to a tcl object to an aolserver connection

2008-08-28 Thread Stephen Deasey
On Fri, Aug 29, 2008 at 3:18 AM, Mark Aufflick [EMAIL PROTECTED] wrote: Hi Stephen, What does ns_conn write_encoded false do (although it is somewhat self explanatory)? With the write_encoded flag set (which ns_startcontent sets) ns_write will assume you're sending character data and will

Re: [AOLSERVER] Getting a handle on memory usage

2008-05-02 Thread Stephen Deasey
On Fri, May 2, 2008 at 6:46 PM, Rick Cobb [EMAIL PROTECTED] wrote: Just to add something to the discussion: One point I think is confusing about the C API, and needs more amplification in the documentation, is the asymmetry between Ns_TclAllocateInterp and Nn_TclDeAllocateInterp. In our C/C++

[AOLSERVER] nsdbi database driver interface 0.1

2008-04-17 Thread Stephen Deasey
nsdbi is a database driver interface for naviserver. It provides native bind variable support, transparent prepared queries and handle management, runtime configuration, statistics, and a few other things. There are drivers for postgres, mysql and sqlite. There's also a stub driver included for

Re: [AOLSERVER] nssqlite3 troubles

2008-02-07 Thread Stephen Deasey
On Feb 7, 2008 9:32 AM, Jeff Rogers [EMAIL PROTECTED] wrote: The problem is straightforward - the driver checks how many rows are returned after executing a statement; 0 returns NS_DML and 0 returns NS_ROWS. 'ns_db select' and '0or1row' expect NS_ROWS results, even if there are no rows to be

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-02 Thread Stephen Deasey
On 10/2/07, Tom Jackson [EMAIL PROTECTED] wrote: ... it would be nice if new code followed AOLserver coding norms. Maybe you can get naviserver to take out their code. The module I wrote at least compiled against their server... You're using symbols declared in nsd/nsd.h, which is private to

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-02 Thread Stephen Deasey
On 10/3/07, Tom Jackson [EMAIL PROTECTED] wrote: Anyway, I don't really know if this will work as the original, I was able to fcopy in background a short text file, but larger than 4096 bytes just gets that amount according to wget. In foreground/blocking mode, fcopy returns larger files.

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

2007-08-03 Thread Stephen Deasey
Hi, I think it's a fine idea that conn thread pools are a process-wide resource. I liked the idea so much, I copied it. (Well, the limits part, so far...) But I agree with you; although ns_pools/ns_limits enable some handy new features, such as dynamic configuration, it sure would be convenient

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

2007-08-03 Thread Stephen Deasey
On 8/3/07, Tom Jackson [EMAIL PROTECTED] wrote: Stephen, My concern over this is that one virtual server might have slightly different code, for instance development vs. production, and would likely share the same threadpool. What exactly is part of the thread in a pool? Is there any

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

2007-08-03 Thread Stephen Deasey
On 8/4/07, Tom Jackson [EMAIL PROTECTED] wrote: Stephen, I agree that you have clearly defined one use of threadpools, essentially overall limits. But note that threadpools are tied to url patterns. The concept is that certain urls consume more resources that others, not just memory, but

Re: [AOLSERVER] Charset problem

2005-07-20 Thread Stephen Deasey
The dump will either contain literal ASCII question marks because Oracle has decided to clip the high bits during export, or it will contain mangled byte sequences which don't correspond to any character which can be displayed on your screen. If Oracle clipped, your out of luck. Otherwise, you

Re: [AOLSERVER] Proposed change to internal redirects behavior

2005-02-11 Thread Stephen Deasey
Hi, I fixed this bug 6 months ago. There's a patch on SourceForge: Invalid response status logged for custom redirects http://sourceforge.net/tracker/?func=detailaid=1013752group_id=3152atid=103152 You may also be interested in this related patch which alows a custom redirect handler to know

Re: [AOLSERVER] Proposed change to internal redirects behavior

2005-02-11 Thread Stephen Deasey
On Fri, 11 Feb 2005 15:20:26 -0500, Dossy Shiobara [EMAIL PROTECTED] wrote: Can you explain this: - connPtr-responseStatus = status; +/* 200 is default. Don't stomp custom redirects. */ +if (status != 200) { +connPtr-responseStatus = status;

Re: [AOLSERVER] Proposed change to internal redirects behavior

2005-02-11 Thread Stephen Deasey
On Fri, 11 Feb 2005 16:21:49 -0500, Dossy Shiobara [EMAIL PROTECTED] wrote: On 2005.02.11, Stephen Deasey [EMAIL PROTECTED] wrote: Why introduce Ns_ConnSetUrl()? Why not change Ns_SetRequestUrl() to do this? Ns_SetRequestUrl(Ns_Request * request, char *url); Ns_ConnSetUrl(Ns_Conn

Re: [AOLSERVER] AOLserver facelift.

2005-02-08 Thread Stephen Deasey
On Tue, 8 Feb 2005 09:06:21 +0100, Zoran Vasiljevic [EMAIL PROTECTED] wrote: This is my wish-list. Do whatever you consider appropriate. It is *far* from complete, but I guess I have to start with something. (I have no reason of hiding it, I'm not secret service): Interesting list. Here's

Re: [AOLSERVER] Support for non-HTTP protocols

2004-08-19 Thread Stephen Deasey
On Wed, 2004-08-18 at 09:21, Jim Wilcoxson wrote: ... AOLserver is ideally suited to the majority of server tasks. About the only shortcoming which comes to mind is that conn threads are required to do blocking writes. But fixing that would be of benefit to the HTTP processing side

Re: [AOLSERVER] Support for non-HTTP protocols

2004-08-17 Thread Stephen Deasey
On Tue, 2004-08-17 at 03:59, Andrew Piskorski wrote: On Tue, Aug 17, 2004 at 10:32:56AM +0200, Zoran Vasiljevic wrote: Vlad's patch implements entirely new socket-level driver and sticks the whole add-in functionality in the driver itself, effectively Stephen's patch integrates into the

Re: [AOLSERVER] Support for non-HTTP protocols

2004-08-17 Thread Stephen Deasey
On Tue, 2004-08-17 at 05:46, Dossy Shiobara wrote: So far, this has been working really well for me. No modification to the core involved, and it's implemented in very few LOC overall. Using the same pattern, I could easily implement an SMTP, IMAP, etc., server in pure Tcl. I'm not sure

Re: [AOLSERVER] Support for non-HTTP protocols

2004-08-17 Thread Stephen Deasey
On Tue, 2004-08-17 at 03:28, Bas Scheffers wrote: Very interesting. After only reading your nutshell descriptions, to me what would seem like a nice way of handling this is lightweight plumbing in C and the bulk in Tcl. This is the essence of my proposed solution. You are required to write a

Re: [AOLSERVER] Support for non-HTTP protocols

2004-08-17 Thread Stephen Deasey
On Tue, 2004-08-17 at 06:55, Dossy Shiobara wrote: I could very well be wrong. If someone is interested in finding an off-the-shelf, or implementing from scratch, a load generator for one of these non-HTTP protocols (say, SMTP) ... I'd like to have a bake-off. Implemented in pure Tcl, and

Re: [AOLSERVER] ad_conn url cuts off after th #

2004-08-07 Thread Stephen Deasey
The fragment appears in the URL displayed by your browser, it's not necessarily sent to the server. /fragment.tcl ns_return 200 text/plain request: [ns_conn request] telnet localhost 80 GET /fragment.tcl#frag HTTP/1.0 404 Not Found. telnet locahost 80 GET /fragment.tcl?foo=bar#frag request:

[AOLSERVER] AOLserver 4.0.6 has crashing bug leading to DOS.

2004-07-16 Thread Stephen Deasey
How to reproduce: telnet host 80 GET / HTTP/1.1 I sent an email about this early yesterday well before the release, but didn't get any response. Thanks. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with

Re: [AOLSERVER] AOLserver 4.0.6 has crashing bug leading to DOS.

2004-07-16 Thread Stephen Deasey
. On Fri, 2004-07-16 at 13:22, Rob Crittenden wrote: This causes a core dump? rob Stephen Deasey wrote: How to reproduce: telnet host 80 GET / HTTP/1.1 I sent an email about this early yesterday well before the release, but didn't get any response

Re: [AOLSERVER] Security issue in AOLserver (repsonse injection)

2004-07-16 Thread Stephen Deasey
On Fri, 2004-07-16 at 13:01, Dossy wrote: This also raises the issue that AOLserver currently does NOT accept HTTP requests where header lines are split across multiple lines via header-continuation. With regard to strict compliance to the spec., this is a bug and should be addressed

Re: [AOLSERVER] Retiring the SourceForge Patches tracker

2004-07-06 Thread Stephen Deasey
Only the person who opens a bug (and perhaps admins???) can attach files to a bug report, i.e. a patch. If you remove the patch tacker you'll have to fix all the bugs yourself... :-) On Tue, 2004-07-06 at 09:06, Dossy wrote: I want to ask if anyone finds any use or value in having a separate

Re: [AOLSERVER] Managing request-specific global data

2004-06-10 Thread Stephen Deasey
I'd like connection local storage that lasts the lifetime of a client connection to the server, i.e. as long as the socket is open. AOLserver terminology is whacked -- it defines a connection as an HTTP request, and a request as the actual 'GET / HTTP/1.0' line. So I guess what I'd like is

Re: [AOLSERVER] ns_logctl expansion?

2004-03-08 Thread Stephen Deasey
What happens if the network or some other part of the infrastructure goes down such that one of the nodes can't communicate with the master? Do you loose log messages? Does the node block? What happens when the master fills it's log disk, do all the clients block? You're going to need a

Re: [AOLSERVER] Server doesn't recognize directories starting with +

2004-01-27 Thread Stephen Deasey
The patch is against 4.0 but it also applies cleanly against 4.0.2 and 4.1 from CVS. cd aolserver-4.0 patch -p1 -b ../aolserver-4.0-plus-sign-encoding.patch On Tue, 2004-01-27 at 02:25, Bart Teeuwisse wrote: Stephen, against which version of AOLserver 4.0 did you make the patch?

Re: [AOLSERVER] Server doesn't recognize directories starting with +

2004-01-26 Thread Stephen Deasey
It's an AOLserver bug -- it's translating + to space in paths where it shouldn't. Attached is a patch for 4+. On Mon, 2004-01-26 at 14:37, Bart Teeuwisse wrote: Fastpath.c doesn't recognize directories starting with a plus sign (+). Thus _ns_dirlist is never called to return the content of

Re: [AOLSERVER] in-memory database for AOLserver?

2002-07-26 Thread Stephen Deasey
MySQL 4 has an in-memory-only table type, and can be linked against as a library (rather than connected to as a server). Better than nsv's (just.. :-) On Fri, 2002-07-26 at 15:20, Andrew Piskorski wrote: Does and sort of simple, thread-safe, in memory relational database for AOLserver exist?

Re: [AOLSERVER] Digest authorization / WebDAV

2002-04-10 Thread Stephen Deasey
SASL: http://www.oreillynet.com/pub/a/network/2002/04/09/sasl.html ...if you're feeling ambitious.