Re: [AOLSERVER] AOLserver questions

2015-03-20 Thread Sep Ng
This is an intriguing solution. If it were possible to configure ns_pools to do that. I'm not too familiar with how this can be accomplished however. Regards. On Friday, March 20, 2015 at 8:54:10 PM UTC+8, Jeff Rogers wrote: > > Sep Ng wrote: > > Thank you very much for

Re: [AOLSERVER] AOLserver questions

2015-03-20 Thread Sep Ng
Thank you very much for shedding a lot of light into this. On Friday, March 20, 2015 at 3:58:19 PM UTC+8, Gustaf Neumann wrote: > > > Am 20.03.15 um 07:48 schrieb Sep Ng: > >> what is hurting you? >> > > > We have instances where we'd get a high

Re: [AOLSERVER] AOLserver questions

2015-03-19 Thread Sep Ng
Thank you once again for your swift response! On Friday, March 20, 2015 at 2:33:59 PM UTC+8, Gustaf Neumann wrote: > > Am 20.03.15 um 05:47 schrieb Sep Ng: > > Hi Gustaf! Thank you for the informative response! > > I've been thinking of moving to NaviServer but I

Re: [AOLSERVER] AOLserver questions

2015-03-19 Thread Sep Ng
[2] http://en.wikipedia.org/wiki/Denial-of-service_attack#Slow_Read_attack > [3] > > http://openacs.org/api-doc/proc-view?proc=ad_returnfile_background&source_p=1 > [3] http://www.qcode.co.uk/post/121 > [4] http://openacs.org/forums/message-view?message_id=4111406 > [5]

Re: [AOLSERVER] AOLserver questions

2015-03-19 Thread Sep Ng
t than your normal threads and so you can just have a lot of them. > > > > We have a module that you might find useful that helps with this: > > http://aolserver.am.net/code/modules/ampools.adpx > > > > -Alex Hisen > > > > *From:* Sep Ng [mailto:thej

Re: [AOLSERVER] AOLserver questions

2015-03-19 Thread Sep Ng
est correct? You'll need to find a way to > buffer the output and then parse and change the buffer before it's sent. > It would be nice to have this be part of ns_register_filter postauth. > > On 3/19/15 5:12 PM, Sep Ng wrote: > > Thanks for the reply. I am perhaps

Re: [AOLSERVER] AOLserver questions

2015-03-19 Thread Sep Ng
an image > processing queue that runs in it's own thread and it won't take up any > connections. > > Tony > > On 3/18/15 11:09 PM, Sep Ng wrote: > > Hi all, > > I've been reading up on aolserver background delivery tricks on OpenACS > and I'

[AOLSERVER] AOLserver questions

2015-03-19 Thread Sep Ng
Hi all, I've been reading up on aolserver background delivery tricks on OpenACS and I've seen that the patches for the static TCL channel is already in 4.5.1. In the spirit of improving server performance, I've been wondering if such facility is worth building on the custom app to increase con

Re: [AOLSERVER] Question on ns_eval

2013-02-15 Thread Sep Ng
On Friday, February 15, 2013 6:48:58 AM UTC+8, Sep Ng wrote: > > Thank you for the responses. I'll conduct some tests. The code I use to > reload right now is: > > eval namespace eval :: source $file > > so on swtching to ns_eval, I thought to maybe skip the namespace eval. &

Re: [AOLSERVER] Question on ns_eval

2013-02-14 Thread Sep Ng
ther interpreters until their next atalloc event". E.g.: >> you run an ns_eval/source in one nscp, you won't see it reflected in a >> second concurrent nscp session. >> >> Will >> >> >> On Thursday, February 14, 2013 3:21:30 AM UTC-6, Sep Ng wrote: >&g

[AOLSERVER] Question on ns_eval

2013-02-14 Thread Sep Ng
Hello, I've been looking into improve my development environment by using ns_eval to update all the TCL interps everytime I do changes on it. First off, it looks like I have to escape all the special TCL characters on ns_eval. Is this the intended behaviour because I've seen many examples of p

Re: [AOLSERVER] modload: could not find Ns_ModuleInit in /usr/local/aolserver451/bin/nssha1.so

2013-01-29 Thread Sep Ng
For archival purposes, I added this CFLAG to the Makefile. -Wl,--no-as-needed which linked the .so files successfully. Reference. http://stackoverflow.com/questions/14329967/missing-a-library-in-ldd-after-using-gcc-l On Wednesday, January 30, 2013 7:42:17 AM UTC+8, Sep Ng wrote: > >

Re: [AOLSERVER] modload: could not find Ns_ModuleInit in /usr/local/aolserver451/bin/nssha1.so

2013-01-29 Thread Sep Ng
I just came across this particular issue right now while rebuilding aolserver on ubuntu 12.10. Curiously it's for a different module, nscache.so. I checked ldd and it doesn't look like libnscache.so is being linked to it. I'm not sure why that's the case, but perhaps I missed something durin

Re: [AOLSERVER] Roadmap - 4.6 and beyond

2012-09-25 Thread Sep Ng
I say this half in jest but if tuning Aolserver can become less like black magic, that would be a huge plus! On Tuesday, September 25, 2012 4:29:47 PM UTC+8, Jeff Rogers wrote: > > Hi all, > > There should be a 4.5.2 final release sometime soon, but what comes > next? I've been organizing my w

Re: [AOLSERVER] Race conditions with Ns Set Persist?

2012-09-24 Thread Sep Ng
of ns_sets? nsvs are easier to > use for most cases, and if you have more than a few keys probably faster > too. > > -J > > Sep Ng wrote: > > I have several ns_set objects in my aolserver with the persist flag on > > to manage several things but I'm not

[AOLSERVER] Race conditions with Ns Set Persist?

2012-09-24 Thread Sep Ng
I have several ns_set objects in my aolserver with the persist flag on to manage several things but I'm noticing that some of the ns_set objects are losing keys for no apparent reason. Also at one instance, the ns_set object retrieved belongs to a totally different one. I'm not sure if there'

Re: [AOLSERVER] Is it possible to query the state of a thread with the thread id?

2012-06-27 Thread Sep Ng
likely overkill ... consider using [ns_info > threads] first instead :) > > Cheers > -Jim > > > > > > > > > > On Jun 27, 2012, at 6:53 PM, Jeff Rogers wrote: > > > You can get a list of running threads with [ns_info threads], one of the > >

Re: [AOLSERVER] pthreads and AOLserver

2012-06-25 Thread Sep Ng
e subcommands "ns_thread wait" and "ns_thread join" are implemented > with the identical c-code > (calling Ns_ThreadJoin(), which calls straigth pthread_join()). > aolserver has now own thread semantics. > > "insistence"? You mean, why there are

Re: [AOLSERVER] pthreads and AOLserver

2012-06-25 Thread Sep Ng
ad semantics. > > "insistence"? You mean, why there are 2 commands? I could only guess: A > few commands > are there solely for backward compatibility. > > -gustaf neumann > > On 22.06.12 00:21, Sep Ng wrote: > > Thanks Maurizio. I will review the links you

Re: [AOLSERVER] pthreads and AOLserver

2012-06-23 Thread Sep Ng
0:13:47 PM UTC+8, Maurizio Martignano wrote: > > Dear Sep Ng, > > Memory leaks do exist in the majority of Web Servers > (Aolserver included). This is a sad fact. Instead of trying to fix these > leaks a better and cheaper strategy could be to have a daily restar

[AOLSERVER] pthreads and AOLserver

2012-06-21 Thread Sep Ng
I've been poking around with how AOLserver handles ns_threads and wanted to raise the questions pertaining to memory leaks. >From the pthread_create man page... A thread may either be *joinable* or *detached*. If a thread is joinable, then >another thread can call pthread_join(3) >

Re: [AOLSERVER] SSL connection error

2012-06-20 Thread Sep Ng
I see that you have cnauto-cert.pem and cnauto-key.pem. Can you look into the files and make sure that the contents are correctly tagged as certificate and key? Maybe also try Protocols="All" for the sslcontext. I'm not sure what's the problem, but hope that might help you. On Monday, June 18

Re: [AOLSERVER] SSL connection error

2012-06-19 Thread Sep Ng
My guess is it has something to do with your keys and certificates, maybe. Maybe you should post relevant sections of your config.tcl. On Monday, June 18, 2012 8:11:18 PM UTC+8, Iuri Sampaio wrote: > > Hi there, > > After setting up nsopenssl on aolserver I got the following error. > > > > SSL

[AOLSERVER] Is it possible to query the state of a thread with the thread id?

2012-06-15 Thread Sep Ng
I have a few tasks that I launch with ns_thread begindetached and I'm wondering if I am able to use threadids to monitor them with AOLserver. Any ideas on how I can tell if the thread id is still active or if it exited already? Thanks! --

Re: [AOLSERVER] modload: could not find Ns_ModuleInit in /usr/local/aolserver451/bin/nssha1.so

2012-05-13 Thread Sep Ng
Your aolserver is looking for nssha1.so in this specific location: /usr/local/aolserver451/bin/nssha1.so Check your folder directory if the file exists. Make sure that the libnssha1.so is in /usr/local/aolserver451/lib too. On Monday, May 14, 2012 5:22:00 AM UTC+8, Klaus Hofeditz ]project-open

Re: [AOLSERVER] What does invalid database_id mean?

2012-05-04 Thread Sep Ng
Thank you for your explanation Jeff. I will continue to look for where the handle was released. It must have happened on the same thread, yes? The same thread that handled the request, yes? On Saturday, May 5, 2012 12:58:40 AM UTC+8, Jeff Rogers wrote: > > Sep Ng wrote: > > Eve

Re: [AOLSERVER] Strange issue with nsopenssl

2012-05-01 Thread Sep Ng
I'll just go ahead and post the solution to this problem. Apparently there's a library conflict between my Oracle install and OpenSSL. I solved it by setting LD_PRELOAD=/usr/lib/libcrypto.so.0.9.8 before running aolserver. On Tuesday, May 1, 2012 11:16:24 AM UTC+8, Sep Ng wro

[AOLSERVER] Strange issue with nsopenssl

2012-05-01 Thread Sep Ng
Hi, I've been looking at one aolserver install which seems to be crashing when I run with SSL certificates. The weird thing is that if I run it as root, the startup goes fine, which leads me to believe it is possibly a permission issue. The crash happens right when nsd attempts to generate 5

[AOLSERVER] What does invalid database_id mean?

2012-05-01 Thread Sep Ng
Every once in a while on my aolserver logs, I find this error and I'm not sure what it means. Typically, I see it when performing a database operation and then aolserver drops into an error like: invalid database_id: nsdb0 Is this related to another log entry: max connections exceeded? Is the