Re: [AOLSERVER] Ns_TclEval on v40_r5 returns -1

2004-07-06 Thread Mark Page
Is it true that this code fragment will be running from a 'connection' thread -- e.g., servicing a connection. Use of the Ns_GetConn function implies that it is. Are there any messages in your server log when you run this? Mike Schilli wrote on 7/5/2004, 8:53 PM: Hi there, I'm

Re: [AOLSERVER] Ns_TclEval on v40_r5 returns -1

2004-07-06 Thread Mark Page
, "ns_sendmail", to, " ",from, " ", subject, " ", body);status=Ns_TclEval(dsResult, Ns_ConnServer(conn), dsScript.string) Mike Schilli wrote on 7/6/2004, 1:30 PM: Mark Page wrote on 7/6/2004, 6:14 AM: Is it true that this code fragment will be r

Re: [AOLSERVER] Managing request-specific global data

2004-06-10 Thread Mark Page
This sounds like Connection Local Storage type of need. There is a set of api's available in aolserver 4.0 which implement this, which you might find interesting: http://www.aolserver.com/40drafts/capi/api/newindex.htm Specifically, for example,

Re: [AOLSERVER] Large file uploads

2004-06-04 Thread Mark Page
As Dossy says, set your recvwait. Else, it defaults to socktimeout, which defaults to 30 sec. But, given what you had shown, I'd expect to see a message in the server log on a recieve timeout (readtimeoutlogging == true). If you don't see that message in the log, check that you are running a

Re: [AOLSERVER] How to find out the output character encoding?

2004-05-27 Thread Mark Page
In AOLserver 4.0, ns_conn encoding will return the name of the encoding currently set for the active connection. Tilmann Singer wrote on 5/27/2004, 12:46 PM: How can I find out which characterset encoding aolserver uses to return a current request? Would it be correct to use:

Re: [AOLSERVER] 8-bit character

2004-05-17 Thread Mark Page
documents. Do you mean ns/mimetypes? Thanks. Wei --- Mark Page [EMAIL PROTECTED] wrote: If you are using AOLserver 3.5 or 4.0, you can tell it, via configuration, what the character encoding of your source files are. This is described in the sample-config.tcl in top

Re: [AOLSERVER] 8-bit character

2004-05-14 Thread Mark Page
If you are using AOLserver 3.5 or 4.0, you can tell it, via configuration, what the character encoding of your source files are. This is described in the sample-config.tcl in top of the aolserver distribution tree. For example: ns_section ns/encodings ns_param .utf_html utf-8 ns_param

Re: [AOLSERVER] Binding to port 80

2004-02-23 Thread Mark Page
I don't follow this. The Ns_CondTimedWait is defined to take an absolute time value. (See http://www.aolserver.com/docs/devel/c/api/c-ch49.htm#551016 ) So, you don't want to change it to do adjustments assuming that what's given is a relative time. If what's going wrong is that it's getting a

Re: [AOLSERVER] Binding to port 80

2004-02-23 Thread Mark Page
By the way: It would be more proper to use the Ns_IncrTime api to manipulate this timeval. E.g., Ns_GetTime(timeout); Ns_IncrTime(timeout, 10, 0); This makes more sense once the constant delta seconds is replaced by a configurable value. Rob Crittenden wrote on 2/23/2004, 11:58 AM:

Re: [AOLSERVER] Size of file uploads

2004-02-18 Thread Mark Page
would suggest that you increase this timeout to at least 60 seconds. Bas Scheffers wrote on 2/18/2004, 4:31 AM: Hi Mark, Mark Page said: There is a configurable maximum upload size limit. This defaults to 1MB. I knew it must have been something like that! Did the default change from

Re: [AOLSERVER] Size of file uploads

2004-02-17 Thread Mark Page
There is a configurable maximum upload size limit. This defaults to 1MB. The specification is: ns_section ns/server/${servername}/module/nssock ns_param maxinput $yourmaxrequestsize and is specified in bytes. Note, you might need to examine the read timeout value specified. This defaults to

Re: [AOLSERVER] [AS4] ns_getcsv and nsperm

2004-02-10 Thread Mark Page
On your ns_getcsv question; AOLServer 4.0 has broken out the DB API into it's own module -- nsdb, whereas before you would get it as part of the core. What that means is that your server uses any of the ns_db apis, you need to add nsdb.so to your modules section. The surprising part, is that

Re: [AOLSERVER] aolserver 3.4.2 configuration questions

2004-01-20 Thread Mark Page
On the running .tcl pages part (there are others who can comment better on your postgres questions); Try looking at what shows up in the server log file. This file will either be flowing to standard-out, or to the configured 'serverlog' path (defaults to $homedir/log/server.log; you've specified

Re: [AOLSERVER] bind / privileged port

2003-12-01 Thread Mark Page
There is a new command line argument which does this: -b host:portnum Artur Meski wrote on 12/1/2003, 5:39 PM: How can I force AOLserver (4.0) to bind to the privileged port? Is it possible to set privileged httpport in the configuration file? Do I have to specify it on the command

Re: [AOLSERVER] tcl q: how to see escape chars

2003-10-17 Thread Mark Page
If this is for diag/debugging purposes, you can urlencode your string. That makes visible anything not an alphanumeric. If from within an aolserver interp, ns_urlencode will do this for you: puts [ns_urlencode $thing] Scott Laplante wrote on 10/17/2003, 1:44 PM: Is there a way in tcl to

Re: [AOLSERVER] more on special characters: smart quotes

2003-10-17 Thread Mark Page
Most likely, you are getting text encoded in the CP1252 character set (aka, WinLatin1). So, it's not just the smart quotes that will be a problem, but also the Euro symbol (0x80), and several other nice graphic characters (there's a nice bullet symbol at 0x95, and more). If you can get your

Re: [AOLSERVER] uploading pc v. unix text files on 3.5.6

2003-10-02 Thread Mark Page
Could you add this to the bug list at sourceforge? I'll do it for you if you are unable, but it would be better if the one who found the problem entered it. Thanks brad chick wrote: Recently, we upgraded to 3.5.6 from 3.3.1. Unfortunately, our file uploads broke. Now, aolserver doesn't

Re: [AOLSERVER] help with AOLserver basics for newbie

2003-09-08 Thread Mark Page
The '% ... %' syntax is used from AOLserver in ADP pages. You will find a description of ADP pages athttp://aolserver.sourceforge.net/docs/devel/tcl/adp-overview.htmlNote that if your server has not already been configured to serve adp pages, you may need to request a server config file change

[AOLSERVER] AOLserver 4.0 Beta release 8 now available

2003-05-30 Thread Mark Page
Beta release 8 of AOLserver 4.0 is now available with CVS tag aolserver_v4_r0_beta_8. It is also available via the Source Forge download page:   https://sourceforge.net/project/showfiles.php?group_id=3152release_id=162367 Please report bugs via SourceForge at:  

Re: [AOLSERVER] nsdb0 handle and id (Was: Re: [AOLSERVER] postgres driver...

2003-05-30 Thread Mark Page
In a message dated 5/29/2003 8:01:23 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: The pool name is gleaned from an nsv, though. Which beta first had the nsv fix? Beta 6 had the fix for '712241: Creating empty nsv fails in AOLserver 4'. -- AOLserver - http://www.aolserver.com/ To

[AOLSERVER] AOLserver4.0 Porting Note

2003-03-28 Thread Mark Page
The following information item may be helpful to those who are porting an existing AOLserver installation to AOLserver 4.0. The AOLserver C API functions Ns_CacheCreate Ns_CacheCreateSz in 4.0 now produce a Warning severity log entry if called with an already existing cache name. The Log

[AOLSERVER] AOLserver 4.0 Beta release 4 now available

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

[AOLSERVER] AOLserver 4.0 Beta 3 available

2003-03-12 Thread Mark Page
Beta release 3 of AOLserver 4.0 is now available with CVS tag aolserver_v4_r0_beta_3. It is also available via the Source Forge download page: A HREF=""https://sourceforge.net/project/showfiles.php?group_id=3152release_id=145927/A Please report bugs via SourceForge at: A

[AOLSERVER] AOLserver 4.0 Module Porting Guide now available

2003-03-11 Thread Mark Page
This document provides technical information which may be useful for developers who are porting a AOLserver module from an earlier version of AOLserver to AOLserver 4.0. This document is located under 'C Development' of the Documentation section of this site, or by pointing your browser at

Re: [AOLSERVER] sched thread waits and waits for scheduled procs but never re...

2003-03-10 Thread Mark Page
Fix for this is checked in, and will be included in the beta3 release. In a message dated 3/9/03 2:57:25 PM Eastern Standard Time, [EMAIL PROTECTED] writes: I set the following code in my private init.tcl file in AOLserver 4.0b2: proc sleepy { } { ns_log Notice "Sleeping for 120 seconds."

[AOLSERVER] Reminder: Weekly Chat Today (Thursday, Feb 6, 2003)

2003-02-06 Thread Mark Page
What, When, Where - The AOLserver weekly chat takes place today, Thursday, Feb 6, 2003, at 19:00 UTC, which translates to:    2 PM US/Eastern    1 PM US/Central    12 PM US/Mountain    11 AM US/Pacific + Arizona AOL/AIM chatroom: AOLserver on

Re: [AOLSERVER] Reminder: Weekly Chat Today (Thursday, Feb 6, 2003)

2003-02-06 Thread Mark Page
Sorry: Correction on Time - The AOLserver weekly chat takes place today, Thursday, Feb 6, 2003, at 19:00 UTC, which translates to:    2 PM US/Eastern    1 PM US/Central    12 PM US/Mountain + Arizona    11 AM US/Pacific