Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread nitin chandra
[r...@mi aolserver-4.5.1]# rpm -qa | grep glibc glibc-devel-2.9-2.i386 glibc-common-2.9-2.i386 glibc-headers-2.9-2.i386 glibc-2.9-2.i686 [r...@mi aolserver-4.5.1]# Reg Nitin On Fri, Oct 16, 2009 at 10:39 PM, Dossy Shiobara wrote: > Sorry, it appears that pthreads should be part of glibc and gl

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread Dossy Shiobara
Sorry, it appears that pthreads should be part of glibc and glibc-devel. Check for those. On 10/16/09 12:59 PM, nitin chandra wrote: > yum install did not work > > > [r...@mi aolserver-4.5.1]# yum install pthreads > Loaded plugins: refresh-packagekit > fedora >

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread nitin chandra
yum install did not work [r...@mi aolserver-4.5.1]# yum install pthreads Loaded plugins: refresh-packagekit fedora | 2.8 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 4.6 MB 01:26

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread nitin chandra
doing # yum install pthreads On Fri, Oct 16, 2009 at 10:08 PM, nitin chandra wrote: > Yup you are right > > No pthreads > > [r...@mi aolserver-4.5.1]# rpm -qa | grep pthreads > [r...@mi aolserver-4.5.1]# > > Reg > > Nitin > -- AOLserver - http://www.aolserver.com/ To Remove yourself from this

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread nitin chandra
Yup you are right No pthreads [r...@mi aolserver-4.5.1]# rpm -qa | grep pthreads [r...@mi aolserver-4.5.1]# Reg Nitin -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to with the body of "SIGNOFF AOLSERVER" in the email message. You can leave

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread Dossy Shiobara
On 10/16/09 12:15 PM, nitin chandra wrote: > How do i find if 'libpthreads' is installed? You said you're on Fedora FC10, right? I'm guessing something like this: $ rpm -qa | grep pthreads might work. -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer N

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread nitin chandra
Tcl was a default install ... as and when installed the OS. So i am not sure if it was installed with '--enable-threads'. I cant recollect editing TCL_THREADS=1 How do i find if 'libpthreads' is installed? Nitin >>> >>> I have a fresh installation of FC10, with gcc 4.3.2, kerrnel 2.6.27, >>> o

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread Dossy Shiobara
On 10/16/09 12:21 AM, nitin chandra wrote: > On Thu, Oct 15, 2009 at 2:01 PM, nitin chandra > wrote: >> Hello Everyone, >> >> I have a fresh installation of FC10, with gcc 4.3.2, kerrnel 2.6.27, >> on a P4 1.8GHz, 256 DDR RAM, with Python 2.6.2 (--enable-shared, >> --with-threads, /opt/python262)

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-16 Thread russell muetzelfeldt
On 16/10/2009, at 3:21 PM, nitin chandra wrote: On Thu, Oct 15, 2009 at 2:01 PM, nitin chandra > wrote: following steps were taken for installation: # tar zxvf aolserver-4.5.1-src.tar.gz # cd aolserver-4.5.1 # ./configure --prefix=/opt/aolserver --with-tcl=/usr/lib\ --enable- threads | tee a

Re: [AOLSERVER] AoLserver 4.5.1 install issue

2009-10-15 Thread nitin chandra
On Thu, Oct 15, 2009 at 2:01 PM, nitin chandra wrote: > Hello Everyone, > > I have a fresh installation of FC10, with gcc 4.3.2, kerrnel 2.6.27, > on a P4 1.8GHz, 256 DDR RAM, with Python 2.6.2 (--enable-shared, > --with-threads, /opt/python262), Tcl / Tk 8.5 installed as part of the > distro (/us

Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-30 Thread Tom Jackson
I thought I sent this last week, but I used the wrong account, anyway: This example is not "multi-threaded", but it handles multiple connections. The basic API are ns_socklisten, ns_sockaccept and ns_sockcheck. (http://rmadilo.com/files/nsapi/) The example also uses ns_socklistencallback, but the

Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-22 Thread Jim Davidson
The code should work ok. I remember it was a bit messy to map these Aolserver tcl commands which pre-dated the Tcl channel stuff so it was compatible years ago and there were examples of memory leaks from long running detached tcl threads but with care it should be ok Jim Sent from my iPh

Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-20 Thread Nikolay Shulga
Hello, AolServer gives a possibility to use ns_socklistencallback to open a socket, 'ns_thread begindetached' to create thread, ns_chan  - to path channel to this thread. If we do this with every new connection, we get multithreaded tcp socket server - which is exactly what I wanted. I've test

Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-18 Thread Bas Scheffers
As far as I am aware, the only way to do it is to implement a new socket driver in C. AOLserver can certainly handle this. There used to be nsftp, which did just that. Bas. On Tuesday, August 18, 2009 10:26pm, "Nikolay Shulga" said: > Hello, > > Is it possible to use Aolserver as mul

Re: [AOLSERVER] AOLServer 4.x blindly reporting X-Forwarded-For value in logs

2009-08-18 Thread Joseph Kondel
Just a heads up - One possible side-effect could be that if you have a proxy in place in front of your aolserver, you might lose the ability to track unique ip's, and just catch the proxy's ip. Most modern proxy's set the x- forwarded-for to enable you to delineate end-user ips. -j On Aug

Re: [AOLSERVER] AOLServer 4.x blindly reporting X-Forwarded-For value in logs

2009-08-18 Thread Alexey Pechnikov
Hello! You can use HAProxy or other reverse-proxy for more performance and logging. Best regards, Alexey Pechnikov. http://pechnikov.tel/ -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to with the body of "SIGNOFF AOLSERVER" in the email mess

Re: [AOLSERVER] AOLServer 4.x blindly reporting X-Forwarded-For value in logs

2009-08-18 Thread Jeff Rogers
There is no built-in setting to log or not log forwarded headers. It's not difficult to change, but it requires a little programming. If you are comfortable with C, you can edit nslog/nslog.c and change the behaviour with X-Forwarded-For (it's at nslog.c:272 in my copy). You could disable th

Re: [AOLSERVER] AOLserver Crash

2009-07-02 Thread Gustaf Neumann
William Scott Jordan schrieb: Hey all! I've had a few times recently where AOLserver has crashed under high loads. Each time, I see a line in the logs that looks something like "unable to alloc 4895393 bytes". What was the size of AOLserver before the crash (most likely around 2GB)? What is

Re: [AOLSERVER] AOLserver Crash

2009-07-01 Thread Dossy Shiobara
On 7/1/09 12:54 PM, William Scott Jordan wrote: I've had a few times recently where AOLserver has crashed under high loads. Each time, I see a line in the logs that looks something like "unable to alloc 4895393 bytes". Any guesses on what's causing this? Got Tcl code that invokes [exec] anyw

Re: [AOLSERVER] AOLServer documentation

2009-06-03 Thread Nick Miller
Hi Mike, The same stuff (I think) that was on dev.aolserver.com is on http://panoptic.com/wiki/aolserver/AOLserver_Wiki I am not sure which was most up-to-date. Dossy, do you look after the dev.aolserver.com site? I think it can not connect to the database any more. Nick 2009/6/3 Gahan, Mike

Re: [AOLSERVER] AOLServer documentation

2009-06-03 Thread Tom Jackson
I have copies of some docs here: http://rmadilo.com/files/as23docs/index.html http://rmadilo.com/files/docs/toc.html http://rmadilo.com/files/nsapi/ And various other info under: http://rmadilo.com/files/ and Tcl, AOLserver and related docs: http://junom.com/document/ You can search the alm

Re: [AOLSERVER] AOLServer+pound problem

2009-05-02 Thread Alexey Pechnikov
Hello! On Saturday 02 May 2009 19:20:15 Joseph Kondel wrote: > Glad you were able to get haproxy working. I have a similar setup > where I use stunnel in front of haproxy to handle all the ssl. If you > need I can paste in some sample config directives. How to you tune HAProxy+Stunnel? I have wor

Re: [AOLSERVER] AOLServer+pound problem

2009-05-02 Thread Joseph Kondel
Glad you were able to get haproxy working. I have a similar setup where I use stunnel in front of haproxy to handle all the ssl. If you need I can paste in some sample config directives. Also be aware that if you care about logs you should patch stunnel to supper the x-forwarded-for header.

Re: [AOLSERVER] AOLServer+pound problem

2009-05-02 Thread Alexey Pechnikov
Hello! On Thursday 30 April 2009 03:29:41 Joseph Kondel wrote: > I've not used pound but do use HAProxy and have found it quite > capable. Some say it's a bit more difficult to setup for the average > user ( mostly because it has A LOT of features / options ) but I doubt > it would give anyo

Re: [AOLSERVER] AOLServer+pound problem

2009-04-30 Thread Alexey Pechnikov
Hello! On Thursday 30 April 2009 03:29:41 Joseph Kondel wrote: > Give it a look if you are unable to solve the pound issue. > > HAProxy site : http://haproxy.1wt.eu/ I did try to use HAProxy but I did find that it's work with cookies incorrect. HAProxy delete or rewrite server cookies which wher

Re: [AOLSERVER] AOLServer+pound problem

2009-04-30 Thread Gustaf Neumann
We use nginx+SSL and used before pound+SSL. We have no SSL for the aolserver configured. -gustaf neumann Alexey Pechnikov schrieb: Hello! On Thursday 30 April 2009 10:40:17 Gustaf Neumann wrote: nginx is more work to configure. at least the english documentation is sometimes tough to read,

Re: [AOLSERVER] AOLServer+pound problem

2009-04-30 Thread Alexey Pechnikov
Hello! On Thursday 30 April 2009 10:40:17 Gustaf Neumann wrote: > nginx is more work to configure. at least the english documentation is > sometimes > tough to read, but here you have an advantage. nginx is very stable and > fully > featured. Do you using nginx+SSL or AOL+SSL? I'm using pound as

Re: [AOLSERVER] AOLServer+pound problem

2009-04-30 Thread Gustaf Neumann
Dear Alexey, my recommendation is to try nginx. We have up to 3000 concurrently open tcp-connetions, the systems is very reponsive. On the same system we ran into problems at about 800 connections with pound; then we reduced the stack size, that helped until 1500 connections, then we switched

Re: [AOLSERVER] AOLServer+pound problem

2009-04-29 Thread Joseph Kondel
I've not used pound but do use HAProxy and have found it quite capable. Some say it's a bit more difficult to setup for the average user ( mostly because it has A LOT of features / options ) but I doubt it would give anyone on this list a problem. I bring it up because when researching whic

Re: [AOLSERVER] AOLserver 4.5.1 released on February 2, 2009

2009-02-09 Thread Gustaf Neumann
Fenton, Brian schrieb: Congratulations indeed. On a related note, AOLserver.com doesn't appear to be responding. Can someone bring it up please? i can't help here, but i noticed that www.aolserver.com (or http://aolserver.sourceforge.net/) works. For documentation, please use http://panopti

Re: [AOLSERVER] AOLserver 4.5.1 released on February 2, 2009

2009-02-09 Thread Fenton, Brian
09 05:58 To: AOLSERVER@LISTSERV.AOL.COM Subject: Re: [AOLSERVER] AOLserver 4.5.1 released on February 2, 2009 Congratulations ! Thanks to all who worked on making it available. Cheers ! Dossy Shiobara wrote: > We are pleased to announce the availability of AOLserver 4.5.1. This > release

Re: [AOLSERVER] AOLserver 4.5.1 released on February 2, 2009

2009-02-08 Thread aT
Congratulations ! Thanks to all who worked on making it available. Cheers ! Dossy Shiobara wrote: We are pleased to announce the availability of AOLserver 4.5.1. This release is mostly a bug-fix and maintenance release, and offers enhanced functionality and scalability and improved documentat

Re: [AOLSERVER] AOLserver Crash!

2008-11-02 Thread Dossy Shiobara
Rami Jadaa wrote: > So any idea what could be there in nsmysql that would crash AOLserver? Are you using the latest nsmysql (CVS HEAD)? Can you get a core dump from the crash and a gdb backtrace? -- Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network

Re: [AOLSERVER] AOLserver Crash!

2008-11-02 Thread Rami Jadaa
--Ursprüngliche Mitteilung- > Von: Juan José del Río <[EMAIL PROTECTED]> > An: AOLSERVER@LISTSERV.AOL.COM > Verschickt: Mi., 29. Okt. 2008, 12:26 > Thema: Re: [AOLSERVER] AOLserver Crash! > > > Hello, > > > >From my experience, I think the problem may be

Re: [AOLSERVER] AOLserver Crash!

2008-10-30 Thread SUBSCRIBE AOLSERVER Bjoern Kiesbye
ation documentation, the current release is v45_r0 , I think. .    good luck, Bjoern -Ursprüngliche Mitteilung- Von: Juan José del Río <[EMAIL PROTECTED]> An: AOLSERVER@LISTSERV.AOL.COM Verschickt: Mi., 29. Okt. 2008, 12:26 Thema: Re: [AOLSERVER] AOLserver Crash! Hello

Re: [AOLSERVER] AOLserver Crash!

2008-10-29 Thread Gustaf Neumann
Rami, it looks to me as if the problem is due to a c-extension you are using and happens after a thread exit. When a thread exists, it frees among other things the associated tcl interpreter. At this time, all c extensions have to unload cleanly as well. Note that ns_eval creates and destroys as

Re: [AOLSERVER] AOLserver Crash!

2008-10-29 Thread Scott Goodwin
Hi Juan, That's a good point. I noticed Rami was hosting on 64 bit AMD systems and it is possible that if he were running on a 32 bit architecture the problems he's experiencing might not surface. This could mean a problem with Tcl on 64 bit or something specific to AOLserver. I suspect t

Re: [AOLSERVER] AOLserver Crash!

2008-10-29 Thread Juan José del Río
Hello, >From my experience, I think the problem may be related with the 64 bits. I've servers with AOLServer 32 bits, and AOLServer 64 bits, and I have seen 64 bits growing faster in memory (and even not decreasing through time), until it takes a considerable amount of memory (then I have to rest

Re: [AOLSERVER] AOLserver Crash!

2008-10-29 Thread Scott Goodwin
It appears that you have the same problem in all of your servers; the goal is to find out what part of the code is failing and under what conditions. Three things stand out: failed servers are under a heavier load than those that don't exhibit the failure; the failure happens shortly after

Re: [AOLSERVER] AOLserver Crash!

2008-10-29 Thread Rami Jadaa
Hi Scott, Thanks for your reply. I don't think that I can send the log as it will be so big , as AOlserver initiates and load a lot of ACS code... And for the checksum, we did the following: Using pound, we shifted the load going to this webserver to another server on another machine where it use

Re: [AOLSERVER] AOLserver Crash!

2008-10-28 Thread Scott Goodwin
Rami, Tcl is attempting to create a new hash table entry on a hash table that was either never created or was created but has ceased to exist -- most likely the pointer to that hash table is null or corrupted. This could be something in AOLserver that uses the Tcl_Hash* API. First steps:

Re: [AOLSERVER] AOLserver Tutorial at Tcl'2008

2008-09-25 Thread Alexey Pechnikov
Hello! В сообщении от Friday 26 September 2008 08:45:06 Dossy Shiobara написал(а): > One of the more common questions folks ask about AOLserver is "how do I > set up virtual hosting" - although, trying to explain that could take up > too much of that 3 hour slot itself. Virtual hosting is really

Re: [AOLSERVER] AOLserver Tutorial at Tcl'2008

2008-09-25 Thread Dossy Shiobara
Matthew M. Burke wrote: > I will be giving a short (3 hour) tutorial at the Tcl'2008 conference in > Manassas, VA on Monday, 20 October. See > http://www.tcl.tk/community/tcl2008/ for details on the tutorial. Thank you for representing AOLserver at the Tcl conference! I do plan to attend but I r

Re: [AOLSERVER] AOLserver Tutorial at Tcl'2008

2008-09-25 Thread Cesareo Garci’a Rodicio
Hi! If I'd be an tutorial attendant, I'd like to hear about: - Basic/Advanced Setup - Use of telnet (or similar) control of Aolserver - Use of TCL API If the tutorial will be video recorded, please let me (us) know. Thanks Cesáreo Matthew M. Burke escribió: All, I will be giving a short (

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-17 Thread Tom Jackson
On Wednesday 16 April 2008 17:35, Bas Scheffers wrote: > On 17/04/2008, at 9:25 AM, Tom Jackson wrote: > > Your script/page level code can remain unchanged even when you switch > > databases. > > That looks more like an OR mapping framework. I think that is a good > thing to have also but to me it

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Don Baccus
On Apr 16, 2008, at 8:37 PM, Bas Scheffers wrote: It is the obvious way to do it. I would suspect that the OpenACS team decided to mimic Oracle behavior simply to lower the amount of re-writing of existing queries to be done. Which is perfectly valid for their goal and how I would likely hav

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Bas Scheffers
Uhm, yes, possible. :) On 17/04/2008, at 12:54 PM, Michael A. Cleverly wrote: On Wed, Apr 16, 2008 at 5:20 PM, Bas Scheffers <[EMAIL PROTECTED]> wrote: On 17/04/2008, at 8:14 AM, Dossy Shiobara wrote: I don't really like bind variables, I would much rather see it implemented like: ns_db s

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Bas Scheffers
Message From: Bas Scheffers <[EMAIL PROTECTED]> To: AOLSERVER@LISTSERV.AOL.COM Sent: Wednesday, April 16, 2008 4:20:46 PM Subject: Re: [AOLSERVER] aolserver and Pgtcl On 17/04/2008, at 8:14 AM, Dossy Shiobara wrote: I have wanted to add bind variable support to nsdb for a _long_ time, but

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Michael A. Cleverly
On Wed, Apr 16, 2008 at 5:20 PM, Bas Scheffers <[EMAIL PROTECTED]> wrote: > On 17/04/2008, at 8:14 AM, Dossy Shiobara wrote: > > I don't really like bind variables, I would much rather see it implemented > like: > > ns_db select $db "select * from people where country = $1 and age > $2" > [list "

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Jade Rubick
The other is performance. Jade On Wed, Apr 16, 2008 at 5:40 PM, Bas Scheffers <[EMAIL PROTECTED]> wrote: > I would never say that; not having to worry about quoting is one of the > main advantages of using bind variables/parameters. > > Bas. > > > > -- > AOLserver - http://www.aolserver.com/ > >

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Brett Schwarz
This is how pgtcl actually does bind variables... - Original Message From: Bas Scheffers <[EMAIL PROTECTED]> To: AOLSERVER@LISTSERV.AOL.COM Sent: Wednesday, April 16, 2008 4:20:46 PM Subject: Re: [AOLSERVER] aolserver and Pgtcl On 17/04/2008, at 8:14 AM, Dossy Shiobara wrote: &g

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Bas Scheffers
On 17/04/2008, at 9:10 AM, Don Baccus wrote: ns_db select $db "select * from people where country = $1 and age > $2" [list "au" 25] Geez, names are more readable than numbers in any sizable query. The numbers/names isn't that important to me. What is important is that I would like to see vari

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Bas Scheffers
On 17/04/2008, at 9:25 AM, Tom Jackson wrote: Your script/page level code can remain unchanged even when you switch databases. That looks more like an OR mapping framework. I think that is a good thing to have also but to me it is separate from having bind variables in the core nsdb api. I wo

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
On Wednesday 16 April 2008 16:20, Bas Scheffers wrote: > I don't really like bind variables, I would much rather see it > implemented like: > ns_db select $db "select * from people where country = $1 and age > > $2" [list "au" 25] You can look at the examples in my recent post. It works with pl

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Don Baccus
On Apr 16, 2008, at 4:20 PM, Bas Scheffers wrote: On 17/04/2008, at 8:14 AM, Dossy Shiobara wrote: I have wanted to add bind variable support to nsdb for a _long_ time, but never got around to computing this support matrix that I describe above. I don't really like bind variables, I would much r

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Bas Scheffers
On 17/04/2008, at 8:14 AM, Dossy Shiobara wrote: I have wanted to add bind variable support to nsdb for a _long_ time, but never got around to computing this support matrix that I describe above. I don't really like bind variables, I would much rather see it implemented like: ns_db select $db

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Don Baccus
On Apr 16, 2008, at 3:44 PM, Dossy Shiobara wrote: I have wanted to add bind variable support to nsdb for a _long_ time, but never got around to computing this support matrix that I describe above. If you do, it needs to be a config option, because with Oracle you do *not* want to do this i

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
On Wednesday 16 April 2008 15:11, Don Baccus wrote: > On Apr 16, 2008, at 2:33 PM, Tom Jackson wrote: > > You should look at the pg driver, I think it can emulate bind > > variables, or > > maybe it is part of the db_* API of OpenACS. > > You have to compile nspostgres.c for OpenACS use to make the

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Dossy Shiobara
On 2008.04.16, Tom Jackson <[EMAIL PROTECTED]> wrote: > In general, bind variables is something which is handled by the > driver, because there is no standard on how to do it. Some use ?, some > use :varname. Can someone please help by doing the necessary research and put together a matrix of supp

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Don Baccus
On Apr 16, 2008, at 2:33 PM, Tom Jackson wrote: You should look at the pg driver, I think it can emulate bind variables, or maybe it is part of the db_* API of OpenACS. You have to compile nspostgres.c for OpenACS use to make the command available. Then use ns_pg_bind rather than ns_db.

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
You should look at the pg driver, I think it can emulate bind variables, or maybe it is part of the db_* API of OpenACS. I also have a wrapper API for ns_db which has more of a stored procedure type API. Here is a link to an example application: http://junom.com/gitweb/gitweb.perl?p=twt.git;

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Xavier Bourguignon
Hi Brett, Thanks for the message. I just wanted to try it with pgtcl. My problem with the underlying db api in aolserver is that there is no mechanism for binding variables to an SQL statement, e.g: set sql { select * from table where status = ? } There is no

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
I think the ns_odbc driver can survive from one connection to another. When I use it, I have to put in a trace filter to close/return the handle. I can't imagine that it is a good idea to just randomly reuse an open handle. You risk running out of handles for one, but the state of the connectio

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Brett Schwarz
> Hi, > > I know aolserver comes with postgres support, but I would like to use > the Pgtcl library for a project. > Has anybody managed to use Pgtcl and keep a persistent connection to > the database that can be re-used by the requests coming in, or do you > have to keep opening a connection to t

Re: [AOLSERVER] AOLserver 4.5.0 on windows not exiting service

2008-04-12 Thread Maurizio Martignano
Hello all. I've included Titi's suggestion in the current version of the Win32- OpenACS port. So now NSD is a well behaved windows service. Thanks for your help, Maurizio -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with

Re: [AOLSERVER] AOLserver 4.5.0 on windows not exiting service

2008-04-11 Thread Jim Davidson
Hi, I don't think you lose anything -- Tcl_Finalize carefully tears everything down which is good when the code is used in an embedded system but in AOLserver as a normal process on Unix or Windows the resulting _exit doesn't care about all the work Tcl_Finalize may have done. -Jim

Re: [AOLSERVER] AOLserver 4.5.0 on windows not exiting service

2008-04-11 Thread Titi Alailima
I checked out the exit code in nsmain.c and saw the following sequence: /* * Remove the pid maker file, print a final "server exiting" * status message and return to main. */ NsRemovePidFile(procname); StatusMsg(3); Tcl_Finalize(); return 0; The pidfile is getti

Re: [AOLSERVER] AOLSERVER 4.5 segfaults

2008-02-29 Thread Francesco P. Lovergine
On Thu, Feb 28, 2008 at 01:33:43PM +, Wolfgang Winkler wrote: > I tried to compile AOLSERVER 4.5 with tcl 8.4.14 on an Intel Xeon Quad Core > CPU (Debian 4.0r1). > > Everything compiles fine, but when I try to start nsd with bin/nsd it > segfaults right away. > I would suggest backporting

Re: [AOLSERVER] aolserver 64bit

2008-02-29 Thread John Buckman
On Feb 29, 2008, at 6:03 PM, Tom Jackson wrote: I've done load testing with 64bit, watching the memory footprint as I go, never grew for me with 100k/test. It could be that the 64bit uses more memory, and you just never noticed that your application grew in memory footprint over time and th

Re: [AOLSERVER] aolserver 64bit

2008-02-29 Thread Tom Jackson
I've done load testing with 64bit, watching the memory footprint as I go, never grew for me with 100k/test. It could be that the 64bit uses more memory, and you just never noticed that your application grew in memory footprint over time and then stablized. The best way to test it is to do load

Re: [AOLSERVER] AOLSERVER 4.5 segfaults

2008-02-28 Thread Tom Jackson
Did you compile Tcl? You appear to be using Tcl from a global location. You should first compile/install Tcl with the same prefix as you intend for your AOLserver installation directory. tom jackson On Thursday 28 February 2008 07:20, Wolfgang Winkler wrote: > I did not enter any command line

Re: [AOLSERVER] AOLSERVER 4.5 segfaults

2008-02-28 Thread Wolfgang Winkler
I did not enter any command line arguments, because it crashed at once, even without printing the argument help. But I've copied a configured and compiled aolserver installation directory from another machine (AMD dualcore 64 bit) and after a make clean && make && make install I don't get any s

Re: [AOLSERVER] AOLSERVER 4.5 segfaults

2008-02-28 Thread Dossy Shiobara
On 2008.02.28, Wolfgang Winkler <[EMAIL PROTECTED]> wrote: > On Thursday 28 February 2008, Dossy Shiobara wrote: > > On 2008.02.28, Wolfgang Winkler <[EMAIL PROTECTED]> wrote: > > > I tried to compile AOLSERVER 4.5 with tcl 8.4.14 on an Intel Xeon Quad > > > Core CPU (Debian 4.0r1). Everything com

Re: [AOLSERVER] AOLSERVER 4.5 segfaults

2008-02-28 Thread Wolfgang Winkler
On Thursday 28 February 2008, Dossy Shiobara wrote: > On 2008.02.28, Wolfgang Winkler <[EMAIL PROTECTED]> wrote: > > I tried to compile AOLSERVER 4.5 with tcl 8.4.14 on an Intel Xeon Quad > > Core CPU (Debian 4.0r1). Everything compiles fine, but when I try to > > start nsd with bin/nsd it segfaul

Re: [AOLSERVER] AOLSERVER 4.5 segfaults

2008-02-28 Thread Dossy Shiobara
On 2008.02.28, Wolfgang Winkler <[EMAIL PROTECTED]> wrote: > I tried to compile AOLSERVER 4.5 with tcl 8.4.14 on an Intel Xeon Quad > Core CPU (Debian 4.0r1). Everything compiles fine, but when I try to > start nsd with bin/nsd it segfaults right away. How are you starting nsd? Manually, from a

Re: [AOLSERVER] AOLserver Wiki is now mirrored at dev.aolserver.com

2007-12-13 Thread Janine Sisk
I agree. janine On Dec 13, 2007, at 7:38 AM, Juan José del Río [Simple Option] wrote: Hello everyone, I think dev.aolserver.com is a better place to find it, and people will feel it more like the official wiki, based on the url :) If it works fine, then I think it's a good change. Regard

Re: [AOLSERVER] AOLserver Wiki is now mirrored at dev.aolserver.com

2007-12-13 Thread Juan José del Río [Simple Option]
Hello everyone, I think dev.aolserver.com is a better place to find it, and people will feel it more like the official wiki, based on the url :) If it works fine, then I think it's a good change. Regards, Juan José - Juan José del Río| Comercio online / e-commerce +34 616 512 340

Re: [AOLSERVER] AOLserver and Tcl Ports to iPhone

2007-10-31 Thread Nathan Folkman
Yeah, it was an interesting idea... ;) http://www.freshpatents.com/Client-server-web-application-architectures-for-offline-usage-data-structures-and-related-methods-dt20070208ptan20070033569.php - n On 10/31/07, patrick o'leary <[EMAIL PROTECTED]> wrote: > > It's funny, when I used work for Eri

Re: [AOLSERVER] AOLserver and Tcl Ports to iPhone

2007-10-31 Thread patrick o'leary
It's funny, when I used work for Eric,  every time our operations / sysadmin group complained about disk usage & cost of hardware, we'd say we'd work on porting aolserver to the iPod, and slowly start replacing boxes with cheap iPods Emmm it was a joke Eric, just a joke. ;-) But I've

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-08 Thread Tom Jackson
I have a patch for conn.c and ns.h which enables the functionality of the previous conn.c patch to be handled in a module, and/or written more clearly. The patch is an extension of the external Ns_Conn* API, best seen in context using the patch of ns.h: Index: ns.h =

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-03 Thread Stephen Deasey
On 10/3/07, Tom Jackson <[EMAIL PROTECTED]> wrote: > Thanks, that worked. The -command was executed logging 'okay' + number of > bytes written. > > But the ns_log statements following vwait are not executed. I assume that is > expected? I posted the updated script at: > > http://rmadilo.com/files/

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-02 Thread Tom Jackson
Stephen, Thanks, that worked. The -command was executed logging 'okay' + number of bytes written. But the ns_log statements following vwait are not executed. I assume that is expected? I posted the updated script at: http://rmadilo.com/files/nsbgwrite/nsbgwrite.tcl tom jackson On Tuesday 02

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 fil

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-02 Thread Tom Jackson
Stephen, Thanks for pointing that out. I was wondering about that. I have posted new module code which avoids the private symbols. But this removes the contentsentlength option. I still wonder what the difference between dup'ing and not dup'ing is for (spliceout vs. non-spliceout). In the or

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 privat

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-02 Thread Vasiljevic Zoran
On 02.10.2007, at 19:51, Tom Jackson wrote: web/navi $ ./bin/nsd -f -t sample-config.tcl [02/Oct/2007:10:37:45][6858.690331232][-main-] Notice: nsmain: Tcl version: 8.4.14 [02/Oct/2007:10:37:45][6858.690331232][-main-] Fatal: NsTclInitObjs: sizeof(int) < sizeof(long) Aborted This has been c

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-02 Thread Tom Jackson
On Tuesday 02 October 2007 02:50, Gustaf Neumann wrote: > > I'm going to ask that the patch be removed and replaced with a module. > > i got the - wrong - impression that you (Tom) revised your proposal to > change > the patch into a module, when you realized, that the patch is NOT > implementing b

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-02 Thread Gustaf Neumann
Hi everybody, Tom Jackson schrieb: Gustaf, I'm going to ask that the patch be removed and replaced with a module. i got the - wrong - impression that you (Tom) revised your proposal to change the patch into a module, when you realized, that the patch is NOT implementing background delivery,

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-01 Thread Vasiljevic Zoran
On 01.10.2007, at 21:04, Tom Jackson wrote: tclsock.c-766-/* tclsock.c-767- * Pass a dup of the socket to the callback thread, allowing tclsock.c-768- * this thread's cleanup to close the current socket. It's tclsock.c-769- * not possible to simply register the channel aga

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-01 Thread Tom Jackson
On Monday 01 October 2007 10:48, Andrew Piskorski wrote: > Tom, Gustaf has been both discussing and heavily using this one patch > for several years. Just how much more discussion do you want? It > obviously has been working well for U. Wien and others for years now, > so why not just adopt their

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-01 Thread Jeff Rogers
Andrew Piskorski wrote: What's the actual problem with Gustaf's code? You've obviously read and thought about it, Tom (which I have not), but so far I see a lot of theoretical hand wavy complaints from you, but little solid criticism of the actual code. I also think the code belongs on a modu

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-01 Thread Dossy Shiobara
On 2007.10.01, Andrew Piskorski <[EMAIL PROTECTED]> wrote: > And just where is Gustaf SUPPOSED to add docs for > his new feature anyway? I will try to update doc/ns_conn.n soon and include the two new ns_conn subcommands that Gustaf's patch adds. > And AOLserver should probably be changed somtime

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-01 Thread Andrew Piskorski
On Mon, Oct 01, 2007 at 09:40:19AM -0700, Tom Jackson wrote: > Gustaf, > > I'm going to ask that the patch be removed and replaced with a module. Why? What possible harm does including Gustaf's patch in the stock server cause, rather than loading it as an additional module? > Regardless of the

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-01 Thread Tom Jackson
Gustaf, I'm going to ask that the patch be removed and replaced with a module. I've already written one which does the same thing. We are in a bad habit in this community of letting anything happen at the least possible cost to those who modify core code. This is a perfect example of the situ

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-30 Thread Dossy Shiobara
On 2007.09.28, Gustaf Neumann <[EMAIL PROTECTED]> wrote: > I have asked dossy for commit permissions to add my patches to > the aolserver on Sept 22, 2006 and sent him the patches as well, > but my impression was that there was very little or no interest. Sorry, I totally forgot to respond to yo

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-29 Thread John Buckman
When comparing lighthttpd vs aolserver, notice that aolserver only does worse than lighthttpd for large files, and on the same file system/hardware. Thus, the difference in benchmarks is not likely to be the access logs or disk. Lighthttpd is *not* using the system call to send a file to a

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-29 Thread Gustaf Neumann
Tom Jackson schrieb: Okay, after looking further into this patch, I see that it doesn't actually add any functionality to AOLserver. It looks like you would have to install a newer version of OpenACS to use this. as i wrote in my earlier mail, the patch is simple and small and adds just two

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-28 Thread Tom Jackson
Okay, after looking further into this patch, I see that it doesn't actually add any functionality to AOLserver. It looks like you would have to install a newer version of OpenACS to use this. I have the stubs in for an AOLserver C module, but I'm not sure about a few things. Two commands are

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-28 Thread Tom Jackson
When I look at the patch, it seems to me that this could be put into a module. The new C level command doesn't need to be a static command, it uses only external functions and variables (Ns_*, Tcl_*). Can we work togeather to get a module instead of a patch? I'll work up a module file today i

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-28 Thread Dossy Shiobara
On 2007.09.28, John Buckman <[EMAIL PROTECTED]> wrote: > The 404 handler approach is very clever, that'll do exactly what I > need, thanks! > > Dossy: not sure if it's even worth benchmarking this, as this > approach will yield the static-file-speeds, which are amazing, except > in the rare

<    1   2   3   4   5   6   7   8   9   10   >