Re: [AOLSERVER] AOLserver Project Update

2002-11-08 Thread Peter M. Jansson
On Friday, November 8, 2002, at 09:35 AM, Dossy wrote: This is how I implement this: <% if {[check $something] == 1} { ns_adp_puts { break out of Tcl mode and process some HTML conditionally } } %> The only reason I do the other thing

Re: [AOLSERVER] AOLserver Project Update

2002-11-08 Thread Peter M. Jansson
On Thursday, November 7, 2002, at 09:27 PM, Gabriel Ricard wrote: - Note: my only gripe with ADP is that the following does not appear to work: if { [check $something] == 1 } { %> break out of Tcl mode and process some HTML conditionall

Re: [AOLSERVER] AOLserver Project Update

2002-11-07 Thread Peter M. Jansson
On Thursday, November 7, 2002, at 09:27 PM, Gabriel Ricard wrote: I guess I'm just spoiled by the associative arrays in PHP. Tcl arrays are associative. Tcl has pretty much 3 data structures: - scalars - lists - arrays (which are associative) The trick is that a list is

Re: [AOLSERVER] malloc replacement libraries?

2002-11-07 Thread Peter M. Jansson
On Wednesday, November 6, 2002, at 11:03 PM, Nathan Folkman wrote: What are the major differences that would need to be bridged between the stock 3.5.1 code base and 3.3+ad13 The ACS version of AOLserver has i18n support and changes in the DB interface to support bind variables for the Oracle d

Re: [AOLSERVER] malloc replacement libraries?

2002-11-07 Thread Peter M. Jansson
On Thursday, November 7, 2002, at 06:55 AM, Dossy wrote: What version of Solaris? 2.6? 2.8? 2.8 Ouch, that's a shame. How much traffic does the site get? A fair amount. Hmm. Any custom C modules involved? Nope. The only non-standard modules where nsopenssl and the Oracle driver.

Re: [AOLSERVER] malloc replacement libraries?

2002-11-07 Thread Peter M. Jansson
Or in an external database driver. You can set up a driver where the "SQL" it accepts is whatever you need, and then it returns results in a single column of a single row. This works especially well if you want to set up a pool of them On Thursday, November 7, 2002, at 04:49 AM, Zoran Vasiljevi

Re: [AOLSERVER] malloc replacement libraries?

2002-11-06 Thread Peter M. Jansson
On Wednesday, November 6, 2002, at 10:56 PM, Janine Sisk wrote: I haven't a clue what's going on in there, but it can't be good! You could try to attach gdb to the running process, and then poke around (start with a stack backtrace); many Unix variants allow this. You could also just "kill -A

Re: [AOLSERVER] malloc replacement libraries?

2002-11-06 Thread Peter M. Jansson
Yes, Purify definitely seems to be the way to go. On Wednesday, November 6, 2002, at 06:12 PM, Andrew Piskorski wrote: But then I got Purify, which AFAIK covers everything that Electric Fence can do

Re: [AOLSERVER] malloc replacement libraries?

2002-11-06 Thread Peter M. Jansson
On Wednesday, November 6, 2002, at 06:00 PM, Dossy wrote: Sorry I can't be more constructive. I just had a problem like this, and didn't solve it, so the system just crashes regularly. Ouch. That's a real drag. Want to describe the problem in case there might be some ideas from the community

Re: [AOLSERVER] malloc replacement libraries?

2002-11-06 Thread Peter M. Jansson
I recently tried the Solaris malloc debugging facility, but the AOLserver (running ACS) went from taking about 5 minutes to start up to taking over 72 hours to start up. AOLserver uses so much dynamic memory that any malloc debugging solutions that work by adding virtual-memory hardware guard buff

Re: [AOLSERVER] alloc: invalid block errors

2002-11-05 Thread Peter M. Jansson
On Tuesday, November 5, 2002, at 03:21 PM, Scott S. Goodwin wrote: Don't let this stop you from writing manual or automated tests -- it should be fairly straightforward to migrate that code into the framework. Or from using other quality management tools than testing -- those get forgotten a lo

Re: [AOLSERVER] Sign Up for AOLserver Documentation!

2002-11-03 Thread Peter M. Jansson
On Sunday, November 3, 2002, at 02:33 PM, Scott Goodwin wrote: Documenting multiple commands on the same page ... will confuse the readers I disagree; I find, for example, that the traditional AOLserver documentation including all variants of ns_return on a single page helps me to better unders

Re: [AOLSERVER] Sign Up for AOLserver Documentation!

2002-11-03 Thread Peter M. Jansson
On Sunday, November 3, 2002, at 02:09 PM, Scott Goodwin wrote: It breaks the unix standard of one command per man page I think Tcl commands are more akin to library calls than shell commands, and there is no standard for a single library call per man page. For examples, look at the documentat

Re: [AOLSERVER] ns_sendmail

2002-11-01 Thread Peter M. Jansson
But I'd avoid using ns_sendmail for a production system, unless you build around it the mechanisms to handle retries on failures. If you're calling ns_sendmail from a .adp, and the sendmail server, for some reason, isn't up, you'll just get an error, and lose what would have been in the message.

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

2002-10-30 Thread Peter M. Jansson
On Wednesday, October 30, 2002, at 11:39 AM, Dossy wrote: But, as it's been pointed out, Apache 2 is multithreaded, You can run Apache 2 with a threaded multiprocessing module (MPM), but you can also run one that uses a preforked process pool as well. There are at least 3 MPMs as of now, as fa

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

2002-10-30 Thread Peter M. Jansson
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? OK under load?

Re: [AOLSERVER] segfault in ns_malloc, _smalloc

2002-10-28 Thread Peter M. Jansson
Does anyone know if the bug Zoran fixed was patched in the ArsDigita AOLserver (3.3+ad13)? Zoran, can you post the changes to the list, please, if they're not too large? Thanks, Pete. On Monday, October 28, 2002, at 10:58 AM, Zoran Vasiljevic wrote: I will send you the changes to the cl

Re: [AOLSERVER] sha1 // ns_sha1

2002-10-28 Thread Peter M. Jansson
At 11:55 AM 10/28/2002 +0100, you wrote: b9ff9778b351918b01deebd508cae98a558bfe01 [snip] B9FF9778B351918B01DEEBD508CAE98A558BFE01 These are both hexadecimal representations, and as such, both are "correct. " What results you get depends on what accepts these strings. Many C implementation

Re: [AOLSERVER] segfault in ns_malloc, _smalloc

2002-10-28 Thread Peter M. Jansson
On Monday, October 28, 2002, at 01:46 AM, Andrew Piskorski wrote: On shared libraries, I think that if I have two processes both loading the same .so, then that .so is shared between them, and if the library is not thread safe I'll be hosed, even if all access to the library within each process i

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-25 Thread Peter M. Jansson
On Friday, October 25, 2002, at 12:59 PM, Durga wrote: Informix drive Does Informix have a JDBC driver?

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-24 Thread Peter M. Jansson
On Thursday, October 24, 2002, at 05:41 PM, Durga wrote: At last, I am able bring up the Web Server!!...I replaced the "gmake", "gcc" with latest version, then I installed it. I'm glad to hear you've got past this roadblock! Pete.

Re: [AOLSERVER] AOLServer 2.3 could be configured to restrict the acc ess to his service.

2002-10-24 Thread Peter M. Jansson
AOLserver 2.3 includes a web interface to the permissions database, available from http://yourservername/NS/Admin which you can use to add the restriction to a part of your page tree by hostname. Make sure you add permission records for both GET and POST methods. I no longer have a 2.3 installati

Re: [AOLSERVER] SourceForge NNTP beta service!

2002-10-23 Thread Peter M. Jansson
On Wednesday, October 23, 2002, at 08:33 PM, Dossy wrote: 2) nc (netcat, useful in a pinch like this) 3) openssl (handy command-line) 4) a simple shell script You're working too hard! Try using stunnel (http://www.stunnel.org/)

Re: [AOLSERVER] Tcl makefiles use wrong compiler

2002-10-23 Thread Peter M. Jansson
On Wednesday, October 23, 2002, at 01:17 PM, Andrew Piskorski wrote: How do I properly fix this so it uses the compiler specified in CC in Makefile.global? Does "env CC=/opt/SUNWspro/bin/cc gmake nativeme=1" work for you?

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-22 Thread Peter M. Jansson
I'm leaning toward a broken version of libtool, but as others have written, we'll need to see the entire build output. On Wednesday, October 23, 2002, at 07:27 AM, Durga wrote: Can you give the output of the command: file /users/WWW/AOL/aolserver_3.5/bin/nssock.so nssock.so: ELF 32-bi

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-22 Thread Peter M. Jansson
On Wednesday, October 23, 2002, at 05:34 AM, Durga wrote: -rwxr-xr-x 1 www www 1692 Oct 21 15:05 nssock.so* On a Solaris 8 box, nssock.so is 74752 bytes. Something went very wrong with your installation procedure.

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-22 Thread Peter M. Jansson
? /users/WWW/AOL/aolserver_3.5$ bin/nsd -ft nsd.tcl Thanks, -Durga -Original Message- From: AOLserver Discussion [mailto:AOLSERVER@;LISTSERV.AOL.COM]On Behalf Of Peter M. Jansson Sent: Tuesday, October 22, 2002 2:53 PM To: [EMAIL PROTECTED] Subject: Re: [AOLSERVER] Failed to Load nssock.so

Re: [AOLSERVER] Responding to SourceForge-generated mail

2002-10-22 Thread Peter M. Jansson
On Tuesday, October 22, 2002, at 05:08 PM, David Walker wrote: I liked everything the way it was. While I didn't mind getting the SF tracker messages on the mailing list, I winced when folks replied to the list, rather than to the tracker, only because I knew that meant the person who initiated

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-22 Thread Peter M. Jansson
On Wednesday, October 23, 2002, at 04:36 AM, Durga wrote: Hello Dossy/Jansson, I did re-install the AOL server. However, I still see same error message. Here it is: [22/Oct/2002:14:24:34][1222.1][-main-] Notice: modload: loading '/users/WWW/AOL/aolserver_3.5/bin/nssock.so' [22/Oct/2002:14:24:34

Re: [AOLSERVER] Responding to SourceForge-generated mail

2002-10-22 Thread Peter M. Jansson
On Tuesday, October 22, 2002, at 11:05 AM, Jim Wilcoxson wrote: Has anyone ever though about using BBS software, like UBB or vBulletin? It's more like a community. SF is a development environment. SF has forums like those, and (once you've bookmarked them) they work just about the same way. I

Re: [AOLSERVER] Responding to SourceForge-generated mail

2002-10-22 Thread Peter M. Jansson
On Tuesday, October 22, 2002, at 10:37 AM, Nathan Folkman wrote: 1. Continue to use existing AOL listserv 2. Start up SF listserv and shut down AOL listserv 3. Keep using the AOL listserv for most discussion, and use the SF listserv for just tracker announcements.

Re: [AOLSERVER] Responding to SourceForge-generated mail

2002-10-22 Thread Peter M. Jansson
On Tuesday, October 22, 2002, at 07:52 AM, Dossy wrote: I would, however, suggest that the group be set up as read-only (announce-only) so that people don't try and reply to the email. This is a really good idea. I notice that the SF project for AOLserver has mailing lists turned off -- can we

Re: [AOLSERVER] Module arrogance

2002-10-18 Thread Peter M. Jansson
On Friday, October 18, 2002, at 02:50 PM, Dossy wrote: On 2002.10.18, Peter M. Jansson <[EMAIL PROTECTED]> wrote: I'm not saying you can't make your server fail hard, I'm saying that the driver author should be the one to make the call. I see what you're literally

Re: [AOLSERVER] Module arrogance

2002-10-18 Thread Peter M. Jansson
On Friday, October 18, 2002, at 02:37 PM, Jim Wilcoxson wrote: What is the point of having the DB module load, if it can't connect to the DB server? I use the external database driver interface to wire up AOLservers to things that aren't really databases, so I can take advantage of pooling. Som

Re: [AOLSERVER] Module arrogance

2002-10-18 Thread Peter M. Jansson
One of the reasons I raised this point is that, today, modules are wildly inconsistent about fataling. If the nssock module fails to load or to listen, the server continues, ever hopeful; if the nscp module fails, on the other hand, it's going down and it's not going alone! Between the two, I ca

Re: [AOLSERVER] Module arrogance

2002-10-18 Thread Peter M. Jansson
I agree with Jim's position in a different way...he wants to allow configuration of when to emit a fatal. I think it's silly to depend on polling to determine when a failure has occurred -- when the failure occurs, log something, drop a file in a known place, or something. Just because a module f

[AOLSERVER] Module arrogance

2002-10-18 Thread Peter M. Jansson
I think that modules should not issue fatal errors and terminate the server unless the module determines that the error it has encountered will absolutely prevent correct operation of any part of the server. For example, the current nscp module will terminate the server with a fatal error if it ca

Re: [AOLSERVER] aolserver doesent listen for connections [Please help!]

2002-10-18 Thread Peter M. Jansson
On Friday, October 18, 2002, at 11:39 AM, Psycho Tux wrote: [18/Oct/2002:17:27:51][1480.1024][-main-] Error: nscp: could not listen on 127.0.0.1: [18/Oct/2002:17:27:51][1480.1024][-main-] Error: modload: failed to load '/usr/local/aolserver/bin/n scp.so': 'Ns_ModuleInit' returned -1 [18/Oct/2

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-17 Thread Peter M. Jansson
On Thursday, October 17, 2002, at 03:15 PM, Durga wrote: % ./configure % make install --with-tcl=/pub/lib/ --prefix=/pub/msp/ Since you didn't give a --prefix arg to ./configure, it should have installed in /usr/local/aolserver, and not /pub/AOLserver. Also, y

Re: [AOLSERVER] Failed to Load nssock.so

2002-10-17 Thread Peter M. Jansson
On Thursday, October 17, 2002, at 12:32 PM, Durga wrote: [16/Oct/2002:16:54:12][21439.1][-main-] Warning: modload: no such symbol'Ns_ModuleInit' in module '/pub/AOLserver/bin/nssock.so' [16/Oct/2002:16:54:12][21439.1][-main-] Fatal: modload: failed to load module '/pub/AOLserver/bin/nssock.so'

Re: [AOLSERVER] weird segfault ver 2

2002-10-16 Thread Peter M. Jansson
On Thu, 17 Oct 2002, jerome wrote: > i tried downloading postgres > driver in openacs and [bad French omitted] Before you grabbed the OpenACS pg driver, were you running the latest from the AOLserver SourceForge repository? Wasn't someone working on getting the AOLserver SF version of the PG dr

Re: [AOLSERVER] ns_writecontent and POST'ing data to AOLserver 3.5.0

2002-10-16 Thread Peter M. Jansson
On Wed, 16 Oct 2002, Patrick Spence wrote: > Just to be sure its clear, since you seem to be implying that the stack size > thing is in 3.5.0 here.. I am running 3.4.2 not 3.5 and I had to increase > the stack space. The stack space thing appears to be related to updates to RedHat Linux beyond 7

Re: [AOLSERVER] Segfault when using ns_httpget and ns_sockopen

2002-10-16 Thread Peter M. Jansson
Try doubling your stack...that seems to help folks running newer RedHat versions. Also, see if you can get a core dump or run the AOLserver under gdb and get a stack backtrace -- we'll be able to tell what kind of a segfault you' re having. Pete. On Wednesday, October 16, 2002, at 11:51 AM, Kev

Re: [AOLSERVER] Wierd segfault

2002-10-13 Thread Peter M. Jansson
What happens if you don't load php? I understand it may be required for your application; I'm just looking for effects. On Sun, 13 Oct 2002, Patrick Spence wrote: > ns_paramphp ${bindir}/libphp4.so

Re: [AOLSERVER] Wierd segfault

2002-10-13 Thread Peter M. Jansson
On Sun, 13 Oct 2002, Patrick Spence wrote: > I am using the same binary file on disk to launch all three instances of > aolserver on that machine. Does this mean that you launch three instances from the same binary, but only one exhibits the gethostbyaddr problem? Are there differences in either

Re: [AOLSERVER] Wierd segfault

2002-10-13 Thread Peter M. Jansson
On Sun, 13 Oct 2002, Patrick Spence wrote: > Yes, I have a restriction based on IP, and taking it out removes the > problem. I am starting to think that maybe something that got updated with > up2date hosed something here... The only thing up2date would have done is to replace the resolver libr

Re: [AOLSERVER] Is there a better way of getting the content of a post?

2002-10-13 Thread Peter M. Jansson
Usually, POST content contains query parameters, which can be accessed as members of the ns_set returned from ns_getform. Are you POSTing something that isn't a query parameter? If so, can you redo things so that you post it as a query parameter? (That's the easiest thing, then you can just do n

Re: [AOLSERVER] Wierd segfault

2002-10-13 Thread Peter M. Jansson
OK, it's dying inside the name resolution routines, trying to obtain the contents of a class IN record of type IN for "42.192.99.68.in-addr.arpa". You can do this yourself by doing "nslookup -q=ptr 42.192.88.68.in-addr.arpa", but I don't think you're going to get a problem, because this is using th

Re: [AOLSERVER] Wierd segfault

2002-10-12 Thread Peter M. Jansson
If the process segfaults, it should leave a file named "core" in the directory from which the process was started. There are, however, a number of reasons why a core file may have been suppressed; to figure this out, if you don't have a core file, you'd need to say which OS you're using. If you h

Re: [AOLSERVER] Wierd segfault

2002-10-12 Thread Peter M. Jansson
Can you get a core dump and do a stack trace on it? Failing that, can you run the server under a debugger with -i or -f, and then do a stack trace when the segfault occurs? On Fri, 11 Oct 2002, Patrick Spence wrote: > I am getting a really wierd segfault on my servers.. if I try and enter an >

Re: [AOLSERVER] AOLserver and IP Multicast....

2002-10-11 Thread Peter M. Jansson
On Fri, 11 Oct 2002, Dossy wrote: > During times of heavy traffic, you might lose some packets. But, > is that critical? From the sounds of it, probably not. Good point. If it is critical that every, then the Swiss Army Knife might not be right choice. You would probably be better served by h

Re: [AOLSERVER] AOLserver and IP Multicast....

2002-10-11 Thread Peter M. Jansson
On Fri, 11 Oct 2002, Jerry Asher wrote: > Now there are various ways we might make this more efficient, but one > way that seems to stick out is if we can use some form of broadcast or > multicast so that one system can speak to everyone at a time. This would > be very nice for heartbeats (as spec

Re: [AOLSERVER] AOLserver and IP Multicast....

2002-10-11 Thread Peter M. Jansson
On Fri, 11 Oct 2002, Jerry Asher wrote: > First of all, I know nothing about IP Multicast. Me, too. Sorry. But that won't prevent me from asking a couple of questions anyway... > I believe there are too many systems to use typical tcp/ip unicast > connections, and it strikes me that this may b

Re: [AOLSERVER] need an openssl.so?

2002-09-29 Thread Peter M. Jansson
compiled from scratched into a specific area so > we know exactly what's being used, and so an OS upgrade from, say, RH > 7.2 to 7.3 doesn't break something for us. > > /s. > > > On Sun, 29 Sep 2002 08:39:57 -0400, "Peter M. Jansson" > <[EMAIL PROTECTE

Re: [AOLSERVER] Two modules for AOLServer available

2002-09-29 Thread Peter M. Jansson
On Sun, 29 Sep 2002, Scott Goodwin wrote: > it's time to break OpenSSL into its own openssl.so module, and have it If you build OpenSSL as a shared lib, and the build procedures for the AOLserver modules are friendly to that practice, do we really need an OpenSSL module? What would it do? Last

Re: [AOLSERVER] AOLserver homepage??

2002-09-24 Thread Peter M. Jansson
On Wed, 25 Sep 2002, [ISO-8859-1] Daniƫl Mantione wrote: > On Tue, 24 Sep 2002, Peter M. Jansson wrote: > > > if we figured out a way to present that information using the sourceforge > > project page > > You don't, just like you don't put a list of refere

Re: [AOLSERVER] AOLserver homepage??

2002-09-24 Thread Peter M. Jansson
The old site is in cvs. Just checkout the aolserver.com module and you can get the pages to see what links there were. I think it would be good if we figured out a way to present that information using the sourceforge project page, so we can start moving forward. Do other sf projects have page

Re: [AOLSERVER] OT: gearing for speed....

2002-08-30 Thread Peter M. Jansson
SSL requires a 7-step handshake between the two systems in order to establish an SSL connection before any data can be passed. This handshake also requires multiple cryptographic operations including generation of a fairly small random number, as well as disk accesses of the digital certificate f

Re: [AOLSERVER] Changing the location of the tmp directory

2002-08-29 Thread Peter M. Jansson
On Thursday, August 29, 2002, at 11:42 AM, Janine Sisk wrote: > We have an installation of nsd 3.2+ad12, which I would like to configure > to > use an alternate location for it's temp files. /tmp on this system isn't > large enough for the files that need to be uploaded, and an attempt to > repl

Re: [AOLSERVER] plotting data into graphs...

2002-08-22 Thread Peter M. Jansson
There's not a module for it, but check out RRDTool, written by the same author. Even if you just spin off new processes to work with it, it's capable of accepting samples and emitting a graph, without your having to do anything else. You can use it with MRTG, too (and one of these versions, you'

Re: [AOLSERVER] Ns_WriteConn implementation?

2002-08-14 Thread Peter M. Jansson
I don't know how much this will help... It's a fairly common feature of socket implementations that send() over a tcp connection may not write all of the data, which is why it returns the amount of data written. The amount written in one call depends on various network conditions -- if you write

Re: [AOLSERVER] 28,000 hits per second, how many servers of what kind again?

2002-08-09 Thread Peter M. Jansson
On Friday, August 9, 2002, at 04:29 PM, C. R. Oldham wrote: > Does anyone have any other clues for tuning? The tuning documentation > for AOLserver (at aolserver.com) isn't very helpful. The big secret to tuning AOLserver is that there isn't much to tune. There's minimal gain to be made by incr

Re: [AOLSERVER] 28,000 hits per second, how many servers of what kind again?

2002-08-09 Thread Peter M. Jansson
On Friday, August 9, 2002, at 05:22 AM, Jerry Asher wrote: > Back in '99, Philip Greenspun wrote: > >> America Online is fielding 28,000 hits per second across all of its >> various Web services and servers > > I am curious if anyone knows what the configuration looked like at that > time. How m

Re: [AOLSERVER] How do I stop the AOLserver?

2002-07-14 Thread Peter M. Jansson
That's the right way to stop it. If you want to make sure it stopped, check the server log, which is usually log/server.log under the AOLserver install directory. AOLserver will wait for activity to subside, including background threads, so it can take a little while for AOLserver to actually te

Re: [AOLSERVER] Preliminary AOLserver 3.3ad13 and 3.3ad13tcl8.4 Debian packages and tests with AOLserver+Tcl 8.4

2002-07-12 Thread Peter M. Jansson
we're not really getting a picture of any performance difference between Tcl 8.3 and Tcl 8.4. On Fri, 12 Jul 2002, Roberto Mello wrote: > On Fri, Jul 12, 2002 at 08:37:12AM -0400, Peter M. Jansson wrote: > > How many database connections are configured in the database pools? The &g

Re: [AOLSERVER] Preliminary AOLserver 3.3ad13 and 3.3ad13tcl8.4 Debian packages and tests with AOLserver+Tcl 8.4

2002-07-12 Thread Peter M. Jansson
How many database connections are configured in the database pools? The closeness of the times suggests a bottleneck somewhere. The time per request suggests that the mean request takes about 2.5 seconds. Does that match your experience? Does it take 2.5 seconds to get the page displayed? On

Re: [AOLSERVER] ns_duphigh error

2002-06-20 Thread Peter M. Jansson
If you're running Solaris 7 or later, and you need to increase the number of file descriptors beyond 1024, you can follow the instructions here: http://www.science.uva.nl/pub/solaris/solaris2/Q3.45.html You'll also need to recompile with FD_SETSIZE set to the new value (which must not exceed 65

Re: [AOLSERVER] nsxml UTF8 encoding

2002-06-13 Thread Peter M. Jansson
Could this be done with the Tcl encoding commands? On Thursday, June 13, 2002, at 11:27 AM, Matthew Krenzer wrote: > does anyone have another suggestion?

Re: [AOLSERVER] AOLserver Oracle Driver Improvements

2002-05-30 Thread Peter M. Jansson
While it might be possible to get the oratcl extension to work, it probably wouldn't take advantage of AOLserver's DB handle pools, which are one of the major benefits of AOLserver. Still, for folks coming in with oratcl experience, it might help get them up-to-speed more quickly. But I think an

Re: [AOLSERVER] turn database verbosity on/off?

2002-05-27 Thread Peter M. Jansson
ns_db verbose usually works for me, on a per-pool basis. Also, keep in mind that the LogSQLErrors parameter tells the database pool manager to log an SQL statement that generates an error return, even of verbose is off. In production, I'd usually recommend that you run with verbose off and LogSQ

Re: [AOLSERVER] using exec clogs aolserver

2002-05-10 Thread Peter M. Jansson
Kriston has mentioned that there are problems with exec in a multithreaded environment, mostly in reference to using CGI; still if they're present at that level, I'd expect they're also present for Tcl's exec command. I'm not sure what the problems are, but I can imagine some issues (signal handl

Re: [AOLSERVER] nsopenssl + MacOS + IE 5.x

2002-05-03 Thread Peter M. Jansson
To make Mac IE (and some older Windows IEs) work, you need to turn on session caching and turn off some ciphers. Here's an example config: ns_section "ns/server/${servername}/module/nsopenssl" ns_param ServerPort $httpsport ns_param ServerHostname $hostname

Re: [AOLSERVER] "malformed bucket chain in Tcl_DeleteHashEntry"

2002-04-18 Thread Peter M. Jansson
On 4/18/02 10:49 AM, "Jim Wilcoxson" <[EMAIL PROTECTED]> wrote: > This test is a > 10-15 line TCL loop to read through a file containing around 500K lines, > do 3-4 string operations, set an ns_share array entry Can you try the same test with an nsv instead of an ns_share? > I'd gladly move if

Re: [AOLSERVER] C based modules, tcl interps and memory allocators

2002-04-16 Thread Peter M. Jansson
I'll second Rob's note, and I'll add that you'd be well-served to abstract your storage methods so that you can switch out how you manage the storage of your data without affecting how the application runs. Then you can build a quick version that grabs stuff directly from the database, do some pe

Re: [AOLSERVER] C based modules, tcl interps and memory allocators

2002-04-15 Thread Peter M. Jansson
To answer your question, there's no way to avoid the "Tcl tax" in AOLserver. But maybe that's not a bad thing. The linked lists are setting off warning alarms in my head. Linked lists are terrific if most of what you do is accessing your data items in a serialized stream, but if you are going t

Re: [AOLSERVER] Long Running Queries, Client Timeout

2002-03-18 Thread Peter M. Jansson
Create an ns_event, then spin the query off into one thread which will signal the event when it's done, and spin off a second thread that does a sleep and then signals the event. In your main request thread, you wait for the event and see which thread signaled it (an nsv, I guess), and then you c

Re: [AOLSERVER] Long Running Queries, Client Timeout

2002-03-18 Thread Peter M. Jansson
I think the previous thread dealt with detecting client shutdown, so that long-running queries could be stopped in the hope of reclaiming resources, and the conclusion was that the way AOLserver had implemented reads from the client, that it was impossible to determine whether the client bailed.

Re: [AOLSERVER] ns_register_adptag question

2002-03-12 Thread Peter M. Jansson
I'm not sure if this is related or not, but you are using the same variable name at different scopes, so things might get strange. I'd suggest while you work this out, you use different variable names all around. There was a problem with the fancy parser that it would not parse attributes inside

Re: [AOLSERVER] AOLServer public license ?

2002-03-05 Thread Peter M. Jansson
On 3/5/02 1:26 PM, "Jerry Asher" <[EMAIL PROTECTED]> wrote: > I think is is true with the additional prologue: > > "If you are distributing your derived work, THEN, " Jerry is spot-on here, at least for the GPL.

Re: [AOLSERVER] AOLServer public license ?

2002-03-05 Thread Peter M. Jansson
On 3/5/02 12:36 PM, "Zoran Vasiljevic" <[EMAIL PROTECTED]> wrote: > The point is, I did some changes to the core server Again, I'm not a lawyer, but this looks troublesome. My reading of the licenses is that a product of yours which includes changes to the core server would constitute a derived

Re: [AOLSERVER] AOLServer public license ?

2002-03-05 Thread Peter M. Jansson
The short version is that if you create a derived work, you must allow access to the source of your derived work. If used AOLserver code and hacked it to specialize it somehow, then your hacks must be available. If your product only uses AOLserver as a program, and only interfaces with it throug

Re: [AOLSERVER] ns_sendmail errors

2002-03-03 Thread Peter M. Jansson
On 3/3/02 6:56 PM, "Jason Tauber" <[EMAIL PROTECTED]> wrote: > How do you specify port 25, I thought it was 'telnet localhost:25'? You're really close. Try "telnet localhost 25". Removing the telnet daemon has no effect here, so don't worry about it -- it's not involved in this problem.

Re: [AOLSERVER] ns_sendmail errors

2002-03-02 Thread Peter M. Jansson
Do you have an SMTP server running on localhost, or did you specify a mail server with the MailHost parameter to your nsd.tcl configuration file?

Re: [AOLSERVER] ns_sendmail errors

2002-03-02 Thread Peter M. Jansson
On 3/2/02 8:02 PM, "Jason Tauber" <[EMAIL PROTECTED]> wrote: > Error: Expected a 220 status line; got: > > Expected a 220 status line; got: > This piece indicates that the mail server to which you are connecting did not return a greeting, or possibly did not return a greeting in time, so ns_se

Re: [AOLSERVER] nssha1 and SSHA

2002-02-28 Thread Peter M. Jansson
On 2/28/02 11:55 AM, "Sean Redmond" <[EMAIL PROTECTED]> wrote: > There is a module to do SHA1 encryption (nssha1) from Ars Digita, but I > need a way to do SSHA encryption. Any implementations/ideas? >From the description on this page: http://www.openldap.org/faq/data/cache/347.html It looks

Re: [AOLSERVER] Error: nsd.tcl: Database operation "0or1row" failed (exception NSINT)

2002-02-26 Thread Peter M. Jansson
OK, that makes some sense. Can you run the SQL statement in isql without problems? Do any errors show up in your syslog? On Tue, 26 Feb 2002, oetjoen wrote: > I'am using a stray dollar sign on "id" because that is a variable which > referring to variable procedure get_payment_method,

Re: [AOLSERVER] Error: nsd.tcl: Database operation "0or1row" failed (exception NSINT)

2002-02-25 Thread Peter M. Jansson
On Monday, February 25, 2002, at 08:14 AM, Dossy wrote: > I'd be curious to know if the database name really IS required by ns_pd. I'm sure that the database is not required by ns_pd (meaning the protocol) since the protocol is meant to support a number of datasource formats. As for the Sybase

Re: [AOLSERVER] Error: nsd.tcl: Database operation "0or1row" failed (exception NSINT)

2002-02-25 Thread Peter M. Jansson
On Monday, February 25, 2002, at 05:25 AM, oetjoen wrote: > set sql "select distinct $id from paymentmethodsdescr where > keynr=$keynr" You have a stray dollar sign there -- it should be "distinct id", not "disting $id".

Re: [AOLSERVER] Error: nsd.tcl: Database operation "0or1row" failed (exception NSINT)

2002-02-25 Thread Peter M. Jansson
On Sun, 24 Feb 2002, Scott S. Goodwin wrote: > You have logsqlerrors set to true; I guess that's why you're seeing the > NSINT in the log file. You'll want to figure out how to identify which SQL > statement causes this error. The logsqlerrors param is intended to help identify the SQL statement

Re: [AOLSERVER] AOLserver on HPUX: experiences?

2002-02-14 Thread Peter M. Jansson
AOL has used AOLserver on HP-UX for a number of production systems both internally and customer-visible. www.aol.com used to have HP-UX boxes in the rotation, but I believe they were eventually phased out (for a number of reasons, but not for lack of compabitility with AOLserver). Of course, A

Re: [AOLSERVER] Sun and Solaris vs. Intel and Linux

2002-02-06 Thread Peter M. Jansson
On Wednesday, February 6, 2002, at 10:53 AM, Scott Goodwin wrote: > Not true, Pete. Go look at Dell. I had not looked at Dell before. You're right, they offer two annual support options for RH Linux, although I can't find details of these offerings on their website. The only thing I can find on

Re: [AOLSERVER] Sun and Solaris vs. Intel and Linux

2002-02-06 Thread Peter M. Jansson
On Wednesday, February 6, 2002, at 10:11 AM, Roberto Mello wrote: > On Mon, Jan 28, 2002 at 04:22:23PM -0500, Peter M. Jansson wrote: >> One of the biggest issues in a "serious" production environment is that >> Sun will sell you a reasonably-priced service contract wher

Re: [AOLSERVER] ImageMagick

2002-01-31 Thread Peter M. Jansson
In most modern OS's, the vm implementation will use copy-on-write so that only modified pages are copied. Also there are optimizations so that if you exec in a child process shortly after forking, the process will use minimal memory. If you stress the facility, you may encounter problems, but it

Re: [AOLSERVER] Sun and Solaris vs. Intel and Linux

2002-01-28 Thread Peter M. Jansson
Nothing formal here, but while debugging a performance issue with the Sybase driver, I had a Sun E250 with 2 400MHz CPUs and 1GB RAM, and one generic Linux box with a 700MHz PIII and 512MB RAM. Both systems ran AOLserver 3.x; the Linux box ran a Sybase server using the Sybase 11.x server availabl

Re: [AOLSERVER] ns_returnfile and name of the file being downloaded

2002-01-24 Thread Peter M. Jansson
Before you call ns_returnfile, add a content-disposition header to your output headers like this: ns_set update [ns_conn headers] content-disposition \ "attachment; filename=1.abc" Be aware that not all browsers honor the content-disposition header, or interpret it correctly, so make

Re: [AOLSERVER] linux 2.4 and threading causes panic?

2002-01-22 Thread Peter M. Jansson
On Tuesday, January 22, 2002, at 11:22 AM, Dossy wrote: > Anyone here running AOLserver (or developing other threaded > apps.) under Linux 2.4? Specifically, I'm using 2.4.17. I've got a box with a 2.4.1 kernel running a lightly-used AOLserver; it's been up for about 60 days with no kernel panic

Re: [AOLSERVER] Segmentation fault

2002-01-16 Thread Peter M. Jansson
I bet this wouldn't catch anything. It looks to me like the segfault happens as a result of blowing the stack, and since the function doesn't do anything that would cause an error, it won't pop the catch. On 1/16/02 12:07 PM, "Daniel P. Stasinski" <[EMAIL PROTECTED]> wrote: > if { [catch

Re: [AOLSERVER] Segmentation fault

2002-01-16 Thread Peter M. Jansson
Do you think the proc you previously sent is an example of the problem, or is it just something else that generates a segmentation fault? The code you previously sent has the error I've mentioned, which will cause a segmentation fault. If you have a similar piece of code, you need to fix it in a

Re: [AOLSERVER] Segmentation fault

2002-01-16 Thread Peter M. Jansson
Infinite loops are platform independent. Your code has an infinite loop. What are you trying to do? On 1/16/02 12:38 PM, "Chiriac Petrica Clement" <[EMAIL PROTECTED]> wrote: > My OS is RedHat 7.2. > > Under RedHat 6.2 work best !

Re: [AOLSERVER] Segmentation fault

2002-01-16 Thread Peter M. Jansson
e this value "50" ? > Why produce Segmentation fault ? > > "Peter M. Jansson" wrote: >> >> Don't do that! You have an infinite recursion here. You need to include >> some condition in the code which will stop the recursive calls to "x&

<    1   2   3   >