Re: Fwd: [naviserver-devel] Naviserver and OACS (compatibility)?

2005-12-30 Thread Gustaf Neumann
Zoran Vasiljevic wrote: Why would we need to process that optional argument in the first place? Lets make the ns_register_filter as: ns_register_filter when method urlPattern script The script should be completely specified, for example set arg whatever thing ns_register_filter

Re: [naviserver-devel] Naviserver and OACS (compatibility)?

2005-12-30 Thread Gustaf Neumann
Zoran Vasiljevic wrote: Am 30.12.2005 um 19:19 schrieb Gustaf Neumann: how will be the call, when ns_register_filter preauth GET /junk myfilter is registered? when myfilter preauth Like this. fine. is called, this would be pretty much comaptible with the aolserver

Re: [naviserver-devel] Upload Progress

2005-12-31 Thread Gustaf Neumann
Zoran Vasiljevic wrote: But that would occupy the conn thread for ages, right? I can imagine several slow-line large-file uploads could consume many of those. Wasn't that the reason everything was moved in the driver thread for the 4.0 ? What I have/had in mind is aync writes from the driver

Re: [naviserver-devel] Upload Progress

2006-01-02 Thread Gustaf Neumann
= ad_library { Routines for background delivery of files @author Gustaf Neumann ([EMAIL PROTECTED]) @creation-date 19 Nov 2005 @cvs-id $Id: background-delivery-procs.tcl,v 1.2 2005/12/30 00:07:23 gustafn Exp $ } ::xotcl::THREAD create bgdelivery { set ::delivery_count 0 proc deliver {ch

Re: [naviserver-devel] task backport?

2006-01-06 Thread Gustaf Neumann
Make sure you've read the C10K page: http://www.kegel.com/c10k.html you might want to check lighthttp with its benchmarks, it tried a lot to improve throughput based on the c10k tipps, including epoll for linux. it is at least a nice reference. http://www.lighttpd.net/ -gustaf

Re: [naviserver-devel] Writer Thread proposal

2006-01-12 Thread Gustaf Neumann
Vlad Seryakov wrote: Hi, I have another idea for you to check: Will it be usefull to have special writer thread that will send multiple files in async mode to multiple clients. For example if i serve big ISO or movie files and have many connections, currently they all use conn thread for

Re: [naviserver-devel] Interesting...

2006-02-02 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: This is what I get on single-cpu: Tcl: 8.4.12 starting 16 malloc threads...waitingdone: 0 seconds, 94103 usec starting 16 ckalloc threads...waitingdone: 0 seconds, 243616 usec and on 2CPU: Tcl: 8.4.12 starting 16 malloc threads...waitingdone: 0

Re: [naviserver-devel] Interesting...

2006-02-02 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: could not resist to try this on our p5 production system under modest load (64bit, linux, lpar with 25 processors, 8 dual-core with ibms version of hyperthreading) processor : 25 cpu : POWER5 (gr) clock : 1904.448000MHz revision

Re: [naviserver-devel] standardized comparisons

2006-02-07 Thread Gustaf Neumann
Bernd Eidenschink schrieb: Gustaf, I started with these: * tcl/form.tcl: * tcl/http.tcl: * tcl/charsets.tcl: * tcl/fastpath.tcl: * tcl/sendmail.tcl: the other files you provided partially differ from HEAD. I'll work over them the next days. here

[naviserver-devel] better ns_cache statistics

2006-02-07 Thread Gustaf Neumann
Hi there, determining a good cache size and useful time-out-values is a non-trivial task. ns_cache_stats returns already some useful satistics, but i would say, at least two important figures are missing, which are subsumed by the # of flushes. Actually, there are at least 3 kind of flushes:

[naviserver-devel] TEA 3.5

2006-02-08 Thread Gustaf Neumann
Hi everybody, i would recommend to upgrade the naviserver build system to TEA 3.5 (it's just the tcl.m4 + TEA_INIT([3.5] in configure.in). Allthough the version in naviserver is pretty recent, but a few day later 3.5 with some bug fixes came out. all the best -gustaf PS: did just the same

Re: [naviserver-devel] better ns_cache statistics

2006-02-08 Thread Gustaf Neumann
http://sourceforge.net/tracker/index.php? func=detailaid=1427620group_id=130646atid=719009 great! i am not sure, how to reach cvs head yet, on a simple cvs update without any tags, i don't see this. btw, i've updated the aolerver compatibility patch locally for oacs for filter and

Re: [naviserver-devel] better ns_cache statistics

2006-02-08 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: We have the 4.99.2 release which contains those changes about handling the optional arguments for all callbacks, as we talked about already. I have made the release some days ago. Apropos announcing... Where to? We have the developer list and it was announced there.

Re: [naviserver-devel] better ns_cache statistics

2006-02-08 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: release entry in http://sourceforge.net/project/showfiles.php?group_id=130646 It is already there! The 4.99.1 is the right release, we're now on the 4.99.2 path. i see. my fault. i was scanning for some entries concerning ns_filter and callback procs, or the

Re: [naviserver-devel] memtest

2006-02-18 Thread Gustaf Neumann
Hi Folks, Concerning the previous discussions: Just in case you have not seen this: Gnome 2.14 will come with a GSlice based malloc with significant improvements for multithreaded apps relative to prior versions: http://www.gnome.org/~davyd/gnome-2-14/ -gustaf

Re: [naviserver-devel] nspostgres database driver

2006-03-21 Thread Gustaf Neumann
lists, blobs). afaik, the commands created by CreateCommand are wrapper to call Obj_CmdProc, so i would hope to get some slight improvements here, but executed very frequently. However, also ns_pgtcl from the postgres distro seems to use still the char* interface. -gustaf neumann PS: here

Re: [naviserver-devel] Cache comands (Was: [naviserver-commits] naviserver ChangeLog, 1.405, 1.406)

2006-07-01 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: For my *personal* taste, the API is way too large but what I do not use, I do not care for. I have nothing against having all this in core and I have nothing against maintaining this code in future, if the need arises. The ns_cache interface resembles much

Re: [naviserver-devel] The larch

2006-07-14 Thread Gustaf Neumann
Bernd Eidenschink schrieb: Hi friends, and now to something completely different: the larch... ;-) Some of you might know: http://www.zdziarski.com/projects/mod_evasive/ i have implented something similar (xotcl-request monitor) which you can get from the oacs cvs (still, xotcl style

Re: [naviserver-devel] Encoding: default charset

2006-08-14 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: On 08.08.2006, at 11:48, Michael Lex wrote: When no OutpuCharset is defined, naviserver will send the content without transformation, that means utf-8. But according to the RFC 2616 (HTTP 1.1) all content without an explicit charset: ... in the Content-Type-Header

Re: [naviserver-devel] Documentation website question

2006-09-06 Thread Gustaf Neumann
Bernd Eidenschink schrieb: I really respect the whole Wiki thing for what it created (Wikipedia et al), but I don't like the technology. The surprising part for me is how much success a project can have if people don't need a password to contribute... maybe an option is to look at xowiki:

Re: [naviserver-devel] hosting java-script server-side?

2006-09-20 Thread Gustaf Neumann
(unknown to me) are: c-language interfaces (Tcl is here hard to beat), thread-safety, character encodings, introspection, code-reusability (having the need to program some stuff twice, once in Tcl, once in js), maintenance costs, libraries just my 2 cents... -gustaf neumann

Re: [naviserver-devel] Tcl object handling

2006-09-23 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: Hi! After I have observed some very subtle and hard-to-reproduce bugs in our app, I found out that Tcl object handling in some places in NS code, although by the book is really a source of trouble. Like: Tcl_SetIntObj(Tcl_GetObjResult(interp), 1); /* Unsafe? */

Re: [naviserver-devel] Tcl object handling

2006-09-25 Thread Gustaf Neumann
like ... isobject ... as well. The differences are bigger than expected. Certainly, for some applications that might not matter -gustaf neumann

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Gustaf Neumann
what happens, if you try byte-compiled code, e.g.: test.adp BODY Test list %=[ns_fmttime [ns_time]]% P UL % proc foo {n} { for { set i 0 } { $i $n } { incr i } { ns_adp_puts $i }} foo 50 % /UL /BODY

[naviserver-devel] tiny fast webserver/reverse proxy with

2007-01-08 Thread Gustaf Neumann
Hi everybody, just stumbeled over a russian, lighweight high performance webserver http://wiki.codemongers.com/Nginx http://wiki.codemongers.com/NginxWhyUseIt implementing 7 different event models http://wiki.codemongers.com/NginxOptimizations maybe, someone can use this as a reference...

Re: [naviserver-devel] Quest for malloc

2007-01-13 Thread Gustaf Neumann
I downloaded the code in the previous mail. After some minor path adjustments, I was able to get the test program to compile and link under FreeBSD 6.1 running on a dual-processor PIII system, linked against a threaded tcl 8.5a. I could get this program to consistently do one of two things: -

Re: [naviserver-devel] Quest for malloc

2007-01-16 Thread Gustaf Neumann
This is most probably the best variabt so far, and not complicated, such a optimizer can do the right thing easily. sorry for the many versions.. -gustaf { unsigned register int s = (size-1) 3; while (s1) { s = 1; bucket++; } } if (bucket NBUCKETS) { bucket = NBUCKETS;

Re: [naviserver-devel] Quest for malloc

2007-01-16 Thread Gustaf Neumann
Hi Jeff, we are aware that the funciton is essentially an integer log2. The chosen C-based variant is acually faster and more general than what you have included (it needs only max 2 shift operations for the relevant range) but the assembler based variant is hard to beat and yields another 3%

Re: [naviserver-devel] ns_conn channel: kills kittens?

2007-10-03 Thread Gustaf Neumann
Stephen Deasey schrieb: Here's some problems with ns_conn channel: - ssl: if you use it (or any other comm module) you'll be surprised when 'puts' gets written in clear text. - If you 'puts' rather than ns_write, you may be surprised when automatic chunking, encoding, compression doesn't

Re: [naviserver-devel] Crash in x64 mode in Ns_Log

2007-10-12 Thread Gustaf Neumann
to write an error message and misses the end of the var arg list -gustaf neumann PS: fixed a similar issue in xotcl more than a year ago. Vlad Seryakov schrieb: Hi, This is an example when it crashes inside vsnprintf, experimenting i found that issuing long unknown command crashes as well

Re: [naviserver-devel] Crash in x64 mode in Ns_Log

2007-10-13 Thread Gustaf Neumann
by the fmt string. You are the, the number of %-codes corresponds to the arguments? Is the error produced via Ns_TclLogErrorInfo() ? What happens, if you add at the end of the vararglist in the call causing the problem a (char*)NULL)? -gustaf neumann Vlad Seryakov schrieb: I use ns_log

Re: [naviserver-devel] drop CVS

2008-05-07 Thread Gustaf Neumann
Let me point out another nice feature of git: git provides server-support to behave to clients like a cvs and/or svn server. This means, one can access the git repository from cvs or svn (or git) clients. Not sure if this is an issue, but a user who does not want to learn new commands can

Re: [naviserver-devel] Wiki Account

2009-02-20 Thread Gustaf Neumann
Bernd Eidenschink schrieb: Very nice idea! I am for this. good idea! (i wonder, though, when will wikis eventually add some kind of TinyMCE et. al.) well, see e.g. http://alice.wu-wien.ac.at:8000/xowiki-doc/ -gustaf neumann Gave it a try with the watchdog article: http

[naviserver-devel] driver changes, please check

2010-04-11 Thread Gustaf Neumann
in Tcl), but should done in (similar to the chunked encoding for forms). Actually, there must be a better way for this than the following change: http://bitbucket.org/naviserver/naviserver/changeset/a1ccb0371eee/ all the best -gustaf neumann PS: i had to do a hg push -f Not sure

Re: [naviserver-devel] commit/naviserver: gustafn: - Fix to prevent multiple DriverAccepts on the same socket. The original coded relied on the fact that later accepts

2010-04-13 Thread Gustaf Neumann
people are running on MKS or Amiga? replaced 2 occurrences of the problem with int and undid the first fix. Best regards -gustaf neumann -- Download Intel#174; Parallel Studio Eval Try the new software tools

Re: [naviserver-devel] driver changes, please check

2010-04-13 Thread Gustaf Neumann
Am 12.04.10 15:10, schrieb Stephen Deasey: You are going to have to merge the two heads with 'hg merge' and then push that changeset. See: hg help merge. many thanks! should be fine now. -gustaf -- Download

Re: [naviserver-devel] nsproxy module: change comm to sockets instead of pipes?

2012-01-29 Thread Gustaf Neumann
Am 28.01.12 22:22, schrieb Ibrahim Tannir: On 28-Jan-12 22:09, Stephen Deasey wrote: On Sat, Jan 28, 2012 at 8:19 PM, Ibrahim Tanniritan...@archiware.com wrote: However, the entire asynchronous IO in Windows is really messy business, since the entire mechanism of processing IO

Re: [naviserver-devel] compilation error

2012-02-14 Thread Gustaf Neumann
? -gustaf neumann Am 14.02.12 08:24, schrieb Kulcsár Ferenc: Hello! When I compile naviserver-4.99.4 the following error occures: gcc -shared -O2 -fomit-frame-pointer -Wall -Wno-implicit-int -fPIC -pipe -fvisibility=hidden -m64 -I../include -I/home/feri/tanul/include -DHAVE_CONFIG_H -L

[naviserver-devel] tracking locks on nsv arrays

2012-06-15 Thread Gustaf Neumann
Dear all, There is now support for naviserver and nsstats.tcl to track the source for high locks/contention rate/lock waiting time on nsvs. This is implemented through a new command ns_bucket, which returns the contents of all or the specified bucket(s) with

Re: [naviserver-devel] Greetings

2012-10-10 Thread Gustaf Neumann
-i-can-commit -gustaf neumann -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java

Re: [naviserver-devel] ns_set ... -persistent

2012-10-10 Thread Gustaf Neumann
has already arrays and dicts. Handling multiple values per key can be realized with dict lappend. -gustaf neumann -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app

Re: [naviserver-devel] ns_set ... -persistent

2012-10-10 Thread Gustaf Neumann
Am 10.10.12 18:33, schrieb Zoran Vasiljevic: On 10.10.2012, at 18:15, Jeff Rogers wrote: could that renaming of the core tcl command be done as part of the module sure it can there is no need for an explicit rename, one can register the new command as ns_set. once the command is overloaded,

Re: [naviserver-devel] lurking bugs

2012-10-11 Thread Gustaf Neumann
to ns_chan. there is certainly still a lot to improve. some pages have wrong markup, some pages are missing etc. whenever i step over something, i try to improve. any help is welcome here. just now i have commited a different example for ns_mutex. -gustaf neumann

Re: [naviserver-devel] lurking bugs

2012-10-11 Thread Gustaf Neumann
for your test cases... -gustaf neumann -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python

Re: [naviserver-devel] lurking bugs

2012-10-12 Thread Gustaf Neumann
On 11.10.12 21:01, Jeff Rogers wrote: Gustaf Neumann wrote: Am 11.10.12 19:42, schrieb Jeff Rogers: I'll clean up my testcases and add them. great! Hrm. I have a completely reproducible case, good test case. The frequency in which the script sends new requests is much higher than from

Re: [naviserver-devel] lurking bugs

2012-10-13 Thread Gustaf Neumann
backlog is handled as usual via the incoming traffic, only the final drainage happens this way. I have just added a minimal invasive change to the repository. When other agree this to be a good solution for such cases, i think, it can be simplified further... all the best -gustaf neumann

Re: [naviserver-devel] [AOLSERVER] Naviserver Win-64 Sources

2012-10-16 Thread Gustaf Neumann
-gustaf neumann On 16.10.12 00:36, Maurizio Martignano wrote: To facilitate the discussion, I put in here some examples of the changes I made: *2.a.* From mapPtr = ns_malloc(sizeof(Map)); To mapPtr = (Map*) ns_malloc(sizeof(Map)); *2.b.* From int TclX_WrongArgs (interp, commandNameObj

Re: [naviserver-devel] [AOLSERVER] Naviserver Win-64 Sources

2012-10-17 Thread Gustaf Neumann
have picked randomly. This list is most like not complete. all the best -gustaf neumann +#ifdef _WIN64 +Ns_DStringPrintf(dsPtr, %d %d %d %l64d %l64d %l64d %l64d, +#else Ns_DStringPrintf(dsPtr, %d %d %d % PRId64 % PRId64 % PRId64 % PRId64, +#endif question arise: is this just

Re: [naviserver-devel] var name changes

2012-10-17 Thread Gustaf Neumann
On 17.10.12 13:21, Gustaf Neumann wrote: With this committed, there are still the typcast changes to address, dear all, i have done one more cleanup round and removed all warnings when naviserver is compiled with clang -Wall -pedantic. These changes were mostly mixtures between function

Re: [naviserver-devel] [AOLSERVER] Naviserver Win-64 Sources

2012-10-19 Thread Gustaf Neumann
On 17.10.12 14:05, Gustaf Neumann wrote: #ifdef NS_NOCOMPAT -# error No compatibility macros at present +// # error No compatibility macros at present #endif This is my error, sorry, should be under _WIN64 ... Is anybody aware about NS_NOCOMPAT ? This seem to stem from

Re: [naviserver-devel] lurking bugs: conn threads

2012-10-25 Thread Gustaf Neumann
works in practice quite well). For busy sites, the thread-idle timeout is not needed this way. currently we have a one-way communication from the driver to the conn-threads. with the conn-thread-list (or array), one has a two way communication, ... at least, how i understand this for now. -gustaf

Re: [naviserver-devel] compression

2012-10-27 Thread Gustaf Neumann
a connection thread needs it (by checking, whether the compress stream is available/initialized. -gustaf neumann -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge

Re: [naviserver-devel] lurking bugs: conn threads

2012-10-27 Thread Gustaf Neumann
performance can be gained? Changing the notification structure (adding a connection-thread-queue and extra condition) is a relatively small change, compared to general redesign. -gustaf neumann -- WINDOWS 8 is here

Re: [naviserver-devel] Hello

2012-10-27 Thread Gustaf Neumann
Agustin, here is a port from nsldap_v0_r8 to the naviserver interface. https://bitbucket.org/naviserver/nsldap/src This should make it easier fro users to use this module... -gustaf neumann On 27.10.12 13:42, Agustin Lopez wrote: Thanks, Stephen. Finally I find I have to replace

Re: [naviserver-devel] compression

2012-10-27 Thread Gustaf Neumann
/1.1, if we really should assume gzip by default. -gustaf On 27.10.12 15:03, Stephen Deasey wrote: On Sat, Oct 27, 2012 at 1:13 PM, Gustaf Neumann neum...@wu.ac.at wrote: On 26.10.12 15:47, Stephen Deasey wrote: I think the spec says that for HTTP/1.1, if the client doesn't explicitly say

Re: [naviserver-devel] ns_urldecode -charset

2012-10-30 Thread Gustaf Neumann
Dear David, would the following change help you? Before i finalize this change (do this on encode as well, add to documentation, etc.), was this omitted on purpose in naviserver? -gustaf neumann --- a/nsd/urlencode.c Mon Oct 29 13:46:08 2012 +0100 +++ b/nsd/urlencode.c Tue Oct 30 15:41

Re: [naviserver-devel] ns_urldecode -charset

2012-10-30 Thread Gustaf Neumann
The changes are committed to bitbucket. see https://bitbucket.org/naviserver/naviserver/changeset/7b89b89802beebeb3db4a37c77f3d2d63c944494 all the best -gustaf On 30.10.12 16:03, David Osborne wrote: Hi Gustaf, Yes, that looks great. Along with the ns_urlencode equivalent I think it would

Re: [naviserver-devel] ns_return* documentation and ns_register_* default method

2012-11-01 Thread Gustaf Neumann
input/help is welcome -gustaf neumann -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct

[naviserver-devel] naviserver with connection thread queue

2012-11-01 Thread Gustaf Neumann
waiting time for locks is reduced by a factor of 10. One has to add, that it was not so bad before either. The benefit will be larger when multiple pools are used. Finally i think, the code is clearer than before, where the lock duration was quite tricky to determine. opinions? -gustaf neumann

Re: [naviserver-devel] Changing pageroot

2012-11-01 Thread Gustaf Neumann
hmm, i found two occurrences of nsparam pageroot, and changed these. % egrep -R ns_param *pageroot * openacs-config.tcl:ns_param pageroot$pageroot tests/http-test-config.tcl:ns_param pageroot$pageroot i have added as well ns_info pagedir as an alias for ns_info

Re: [naviserver-devel] ns_return* documentation and ns_register_* default method

2012-11-02 Thread Gustaf Neumann
On 02.11.12 12:43, Stephen Deasey wrote: On Thu, Nov 1, 2012 at 12:13 PM, Gustaf Neumann neum...@wu.ac.at wrote: i think, that adding a command reference would be a nice addition, and is most likely possible with reasonable amount of work. The other alternative would be to split up

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-06 Thread Gustaf Neumann
to create a new thread. However, when the conn thread exists, the single request would not be processed. So, much more testing is needed. -gustaf neumann Am 01.11.12 20:17, schrieb Gustaf Neumann: Dear all, There is now a version on bitbucket, which works quite nice and stable, as far i can tell

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-13 Thread Gustaf Neumann
a behavior similar to idle==0 by setting the low water mark to 0. The shutdown mechanism is now adjusted to the new infrastructure (connection threads have their own condition variable, so one cannot use the old broadcast to all conn threads anymore). -gustaf neumann Am 07.11.12 02:54, schrieb

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-14 Thread Gustaf Neumann
On 13.11.12 15:02, Stephen Deasey wrote: On Tue, Nov 13, 2012 at 11:18 AM, Gustaf Neumann neum...@wu.ac.at wrote: minthreads = 2 creating threads, when idle == 0 10468 requests, connthreads 267 total cputime 00:10:32 creating threads, when queue = 5 requests 10104 connthreads

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-18 Thread Gustaf Neumann
On 14.11.12 09:51, Gustaf Neumann wrote: On 13.11.12 15:02, Stephen Deasey wrote: On Tue, Nov 13, 2012 at 11:18 AM, Gustaf Neumann neum...@wu.ac.at wrote: minthreads = 2 creating threads, when idle == 0 10468 requests, connthreads 267 total cputime 00:10:32 creating threads, when

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-19 Thread Gustaf Neumann
On 18.11.12 20:34, Stephen Deasey wrote: On Sun, Nov 18, 2012 at 1:22 PM, Gustaf Neumann neum...@wu.ac.at wrote: Here are some actual figures with a comparable number of requests: with minthreads==maxthreads==2 requests 10182 queued 2695 connthreads 11 cpu 00:05:27 rss 415 below

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-20 Thread Gustaf Neumann
-stamp for application level profiling as base for a difference with current time. Further wishes, suggestions, comments? -gustaf neumann -- Monitor your physical, virtual and cloud infrastructure from a single web console

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-28 Thread Gustaf Neumann
better. For more information on malloc tests see https://next-scripting.org/xowiki/docs/misc/thread-mallocs or the tcl-core mailing list. That's all for now -gustaf neumann Am 20.11.12 20:07, schrieb Gustaf Neumann: Dear all, The idea of controlling the number of running threads via queuing

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-29 Thread Gustaf Neumann
will check the effects of fastpath cache, which was deactivated so far... best regards -gustaf neumann Am 28.11.12 11:38, schrieb Gustaf Neumann: Dear all, here is a short update of the findings and changes since last week. One can now activate for nslog logpartialtimes, which adds an entry

Re: [naviserver-devel] naviserver with connection thread queue

2012-11-30 Thread Gustaf Neumann
), so i am still for a while busy with that. i hope, that i don't create too much collateral damage and let you know, when the new stuff is stabilized... -gustaf neumann -- Univ.Prof. Dr. Gustaf Neumann Institute of Information Systems and New Media WU Vienna Augasse 2-6, A-1090 Vienna, AUSTRIA

Re: [naviserver-devel] naviserver with connection thread queue

2012-12-03 Thread Gustaf Neumann
Am 29.11.12 19:51, schrieb Gustaf Neumann: However, i am still in the process to clean up and address some strange interactions (e.g. for nsssl some socket closing interactions between driver and connection threads seems to complex to me), so i am still for a while busy with that The problem

Re: [naviserver-devel] naviserver with connection thread queue

2012-12-04 Thread Gustaf Neumann
the interface of all drivers. -gustaf neumann -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus

Re: [naviserver-devel] naviserver with connection thread queue

2012-12-04 Thread Gustaf Neumann
Am 04.12.12 20:06, schrieb Stephen Deasey: - we should actually ship some code which searches for *.gz versions of static files this would mean to keep a .gz version and a non-.gz version in the file system for the cases, where gzip is not an accepted encoding. Not sure, i would like to manage

Re: [naviserver-devel] naviserver with connection thread queue

2012-12-04 Thread Gustaf Neumann
Am 05.12.12 00:41, schrieb Stephen Deasey: On Wed, Nov 28, 2012 at 10:38 AM, Gustaf Neumann neum...@wu.ac.at wrote: It is interesting to see, that with always 5 connections threads running and using jemalloc, we see a rss consumption only slightly larger than with plain tcl and zippy malloc

Re: [naviserver-devel] naviserver with connection thread queue

2012-12-06 Thread Gustaf Neumann
of room for improvement. -gustaf neumann -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering

[naviserver-devel] naviserver-connthreadqueue

2012-12-09 Thread Gustaf Neumann
would tag the current tip of naviserver with 4.99.4 and move the changes over to the main repository in the near future after i make an iteration of the affected documentation. -gustaf neumann -- LogMeIn Rescue

Re: [naviserver-devel] naviserver-connthreadqueue

2012-12-19 Thread Gustaf Neumann
, or it can be extended to compile different formats into a target format. At least something to play in a first step i will commit the changes asap to naviserver-connthreadqueue, clean up, document, etc all the best. -gustaf neumann set file graph.js set fn [ns_info pageroot

[naviserver-devel] nsconf.state.started

2012-12-22 Thread Gustaf Neumann
the starting state. all the best -gustaf neumann --- a/nsd/config.c Thu Dec 20 12:47:08 2012 +0100 +++ b/nsd/config.c Sat Dec 22 12:02:13 2012 +0100 @@ -816,7 +816,7 @@ s = NULL; if (section != NULL key != NULL) { -set = Ns_ConfigCreateSection(section); +set

[naviserver-devel] ns_info / ns_server

2013-01-01 Thread Gustaf Neumann
winnt ns_server keepalive ?pool? should be removed (the first one is obsoleted by ::tcl_platform, the second one is a dummy placeholder, which returns always the constant 0). Comments? -gustaf neumann -- Master

Re: [naviserver-devel] ns_info / ns_server

2013-01-08 Thread Gustaf Neumann
Am 03.01.13 18:48, schrieb Jeff Rogers: Does it make sense to have 2 different information-gathering commands, tho? Why not consolidate all these functions into ns_info, giving appropriate subcommands -server and/or -pool flags as necessary? well, we have as well ns_conn and ns_thread

[naviserver-devel] HTML streaming

2013-01-14 Thread Gustaf Neumann
threads can run without being blocked from slow connections. I have updated the commented changelog at https://next-scripting.org/xowiki/docs/misc/naviserver-connthreadqueue All the best -gustaf neumann -- Master Visual Studio

[naviserver-devel] removing obsolete functions

2013-01-18 Thread Gustaf Neumann
these in more detail? Even when the functions are deleted, they are not lost, reviving these in the case someome needs it could be done quickly. -gustaf neumann Deprecated: Ns_BindSock Ns_ConnFlushHeaders Ns_ConnInit Ns_ConnLocation Ns_ConnQueueHeaders Ns_ConnResetReturn Ns_ConnSetRequiredHeaders

Re: [naviserver-devel] status update

2013-05-25 Thread Gustaf Neumann
Dear all, after doing some more polishing (static analyzers, more valgrind test) and updating NEWS, i've today tagged NaviServer and the modules mentioned below with naviserver-4.99.5 on bitbucket and uploaded new tar files to sourceforge. all the best -gustaf neumann Am 06.05.13 00:12

Re: [naviserver-devel] Nsssl - small logging glitch

2013-06-04 Thread Gustaf Neumann
late that it is in practice not a problem. Please try the change... -gustaf neumann Am 04.06.13 13:09, schrieb David Osborne: Hi, Thanks for 4.99.5. It's been working well for us so far. I've noticed a small glitch in the logging of nsssl shutdowns (not sure if it's new to 4.99.5

[naviserver-devel] improved ns_http and ns_ssl

2013-06-18 Thread Gustaf Neumann
proxy.tcl uses nsf::proc (from http://next-scripting.org) to allow for nice configuration per filter rule. If there is no nsf install, one can replace it by a simple proc and do the configuration differently... Best regards -gustaf neumann PS: the script requires NaviServer 4.99.6 /usr/local/ns/bin

[naviserver-devel] gzipped content delivery for static files

2013-06-22 Thread Gustaf Neumann
Am 04.12.12 23:55, schrieb Gustaf Neumann: Am 04.12.12 20:06, schrieb Stephen Deasey: - we should actually ship some code which searches for *.gz versions of static files this would mean to keep a .gz version and a non-.gz version in the file system for the cases, where gzip is not an accepted

Re: [naviserver-devel] Clock.tcl repeat initialisation after ns_eval

2013-07-05 Thread Gustaf Neumann
1 [list namespace origin [lindex [info level 0] 0]]] -subcommands { add clicks format microseconds milliseconds scan seconds }] ...snip... -- David Osborne On 4 July 2013 21:12, Gustaf Neumann neum...@wu.ac.at mailto:neum...@wu.ac.at wrote: Hi David, tricky

Re: [naviserver-devel] Clock.tcl repeat initialisation after ns_eval

2013-07-08 Thread Gustaf Neumann
to the error, since clock is kind of a self modifying code... I still think, that leaving out the tcl namespaces ::tcl::* is the way to go; but i would prefer, if we don't have to muck around with ::clock. -gustaf neumann

Re: [naviserver-devel] Clock.tcl repeat initialisation after ns_eval

2013-07-08 Thread Gustaf Neumann
Am 08.07.13 21:12, schrieb Jeff Rogers: Sheer luck is definitely a possibility, what i called luck was the random order of entries as returned from the hash tables during serialization. but also naviserver is missing the ensemble serialization that aolserver has, so things defined (or

Re: [naviserver-devel] Clock.tcl repeat initialisation after ns_eval

2013-07-10 Thread Gustaf Neumann
Am 10.07.13 15:01, schrieb David Osborne: On 8 July 2013 17:16, Gustaf Neumann neum...@wu.ac.at mailto:neum...@wu.ac.at wrote: The problem is not only the caches (otherwise it would have been sufficient to exclude the ::tcl::* namespaces from the blueprint), but also

Re: [naviserver-devel] ::errorInfo: no such variable

2013-08-03 Thread Gustaf Neumann
Am 01.08.13 15:00, schrieb David Osborne: Hi, We intermittently encounter the above error when we call a ns_eval from our naviserver codebase (with Tcl 8.5.11 ). The code is in proc getentry in nstrace. Actually, one should only access the value ::errorInfo and friends immediately after an

Re: [naviserver-devel] ::errorInfo: no such variable

2013-08-05 Thread Gustaf Neumann
a patch, that is quite similar to this. https://bitbucket.org/naviserver/naviserver/commits/d118a87689afe116ee3e618809a4b34f66a75379 all the best -gustaf neumann Am 03.08.13 12:07, schrieb Gustaf Neumann: Am 01.08.13 15:00, schrieb David Osborne: Hi, We intermittently encounter the above error when

[naviserver-devel] figures from using naviserver on openacs.org

2013-08-14 Thread Gustaf Neumann
in total, but in average on the same machine, under the same OS release, the new site is significantly faster. http://openacs.org/forums/message-view?message_id=4074774 -gustaf neumann -- Get 100% visibility into Java/.NET

Re: [naviserver-devel] Clock.tcl repeat initialisation after ns_eval

2013-08-16 Thread Gustaf Neumann
testing, it works fine. Many thanks and all the best -gustaf Am 10.07.13 15:01, schrieb David Osborne: On 8 July 2013 17:16, Gustaf Neumann neum...@wu.ac.at mailto:neum...@wu.ac.at wrote: The problem is not only the caches (otherwise it would have been sufficient to exclude the ::tcl

Re: [naviserver-devel] Clock.tcl repeat initialisation after ns_eval

2013-08-19 Thread Gustaf Neumann
is not documented, the second one is. http://www.tcl.tk/man/tcl8.5/TclCmd/clock.htm At least, i can't reproduce the problem with :localtime, all the invocation patterns work fine for me. Do you still get same errors, when using :localtime? all the best -gustaf neumann Am 19.08.13 12:57, schrieb David

Re: [naviserver-devel] Clock.tcl repeat initialisation after ns_eval

2013-08-20 Thread Gustaf Neumann
Am 19.08.13 15:55, schrieb David Osborne: It still looks to me like something unintended is happening internally. However, the clock code handles the error and falls back to returning the correct result. So it may well be deemed as working as designed! i guess we to assume this. we don't

Re: [naviserver-devel] Stack smashing on Wheezy

2013-10-03 Thread Gustaf Neumann
Am 03.10.13 11:08, schrieb David Osborne: Can you foresee any problems with this? no. the core modules we use are quite well debugged and stress-tested (we do not use nsperm). Various debugger / fortifyer / analyzer find different things, so we can't exclude something showing up and if it

Re: [naviserver-devel] patch for ns_sockcallback

2013-10-09 Thread Gustaf Neumann
-gustaf neumann TCL is compiled with Gustaf Neumanns memory allocator path. This is the backtrace with the linux standard memory allocator *** glibc detected *** /usr/local/naviserver/bin/nsd: malloc(): memory corruption: 0x0b371b60 *** === Backtrace: = /lib/libc.so.6

Re: [naviserver-devel] patch for ns_sockcallback

2013-10-09 Thread Gustaf Neumann
ets takes between 200 and 350 ms. The load on the server never exceeded 0.5 and typically hovers around 0.1. best regards Wolfgang Am 2013-10-09 10:55, schrieb Gustaf Neumann: Am 09.10.13 0

[naviserver-devel] naviserver and Tcl 8.4

2013-10-10 Thread Gustaf Neumann
Since nobody speaks up in favor of keeping Tcl 8.4 as requirement, i think we should go ahead and use tcl 8.5 when convenient (and therefore making Tcl 8.5 a requirement in the next release). -gustaf neumann In aolserver the code is wrapped to prevent it from executing on pre-8.5 tcl

  1   2   3   4   5   6   >