Re: [naviserver-devel] ns_config read/write

2007-10-12 Thread Vlad Seryakov
In it will not hurt performance when constantly asking for config parameter with locking i am fine with it. Can be also compile time option for configure Vasiljevic Zoran wrote: So: The configuration is global and read-only. Parameters may be retrieved at run-time using [cmd

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

2007-10-12 Thread Vlad Seryakov
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. In my case i noticed that trying

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

2007-10-02 Thread Vlad Seryakov
i personally never used ns_conn but use writers all the time. Stephen Deasey wrote: 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

Re: [naviserver-devel] Proposal: just an idea about config syntax

2007-08-10 Thread Vlad Seryakov
By implementing it in C and using Tcl_Eval ascripts will be executed at global level and all variables will be visible. It is just may result in supporting 2 diferent config styles which may add maintanence and confusion but overall i personally like new style better Jeff Rogers wrote: Vlad

Re: [naviserver-devel] Has anybody tried to port mod_auth_kerb to AOLServer / Naviserver?

2007-07-31 Thread Vlad Seryakov
On Linux we are using pam_smb and it works great, i compiled it in non-daemon mode and Naviserver has ns_pam module. Rick Cobb wrote: We’re getting a lot of requests for real Windows “single-sign-on”. That is, no sign on at all if the user’s already logged into their Windows domain. This

Re: [naviserver-devel] broken ns_urlencode/decode ?

2007-06-29 Thread Vlad Seryakov
I think it is time to share our great achievements on Naviserver with the world:-)) i mean to release it Zoran Vasiljevic wrote: On 29.06.2007, at 11:39, Bernd Eidenschink wrote: if foo+bar is already encoded, it's ok that another ns_urlencode - part path doesn't add anything more, and

Re: [naviserver-devel] Tcl page result/page caching

2007-06-29 Thread Vlad Seryakov
What are you suggesting? i am not defending what is currently implemented but my only concern is backward compatibility, i have too many applications running on naviserver and many companies depend on it:-)) Stephen Deasey wrote: On 6/29/07, Vlad Seryakov [EMAIL PROTECTED] wrote: That may

Re: [naviserver-devel] initial page delay / startup delay

2007-06-26 Thread Vlad Seryakov
i am running latest from CVS on Linux, no delays, IE7 works fine Zoran Vasiljevic wrote: Hi again! Seems quite a few of things were chaged in some last weeks... I observe (on all browsers) that after firing up the server for the first time, the very first (home)page takes about 2-3

Re: [naviserver-devel] [naviserver-commits] naviserver ChangeLog, 1.615, 1.616

2007-05-24 Thread Vlad Seryakov
Excellent work Stephen!! Stephen Deasey wrote: Update of /cvsroot/naviserver/naviserver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25435 Modified Files: ChangeLog Log Message: * nsd/connio.c: * tests/encoding.test: Use a more robust check for buffer full

Re: [naviserver-devel] [naviserver-commits] naviserver/nsd return.c: switch from Ns_ConnPrintfHeders

2007-02-22 Thread Vlad Seryakov
The reason to use Ns_ConnUpdateHeaders which replaces the header, before it just added Stephen Deasey wrote: On 2/19/07, Vlad Seryakov [EMAIL PROTECTED] wrote: RCS file: /cvsroot/naviserver/naviserver/nsd/return.c,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30

Re: [naviserver-devel] OpenBSD/sparc64: driver blocks on a new connection if acceptsize 1

2007-02-22 Thread Vlad Seryakov
, means developer sold on Naviserver, will secure it if need nscp there. -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Anyway to disable Transfer-Encoding for /*.tcl pages?

2007-02-19 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] [ns_conn peeraddr] always = 0.0.0.0 on OpenBSD 4.0/sparc64?

2007-02-07 Thread Vlad Seryakov
But when we check for inet_ntop there is no u_int8_t or other type references, just inet_ntop(0, (char *)0, (char *)0, 0); Can you check config.log for inet_ntop checking Michael A. Cleverly wrote: On 2/6/07, Stephen Deasey [EMAIL PROTECTED] wrote: On 2/6/07, Vlad Seryakov [EMAIL PROTECTED

Re: [naviserver-devel] [ns_conn peeraddr] always = 0.0.0.0 on OpenBSD 4.0/sparc64?

2007-02-07 Thread Vlad Seryakov
I updated configure.in in the CVS, can you run autogen.sh on CVS version and see if it will detect it right. Michael A. Cleverly wrote: On 2/7/07, Vlad Seryakov [EMAIL PROTECTED] wrote: But when we check for inet_ntop there is no u_int8_t or other type references, just inet_ntop(0, (char *)0

Re: [naviserver-devel] [ns_conn peeraddr] always = 0.0.0.0 on OpenBSD 4.0/sparc64?

2007-02-06 Thread Vlad Seryakov
://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] [ns_conn peeraddr] always = 0.0.0.0 on OpenBSD 4.0/sparc64?

2007-02-06 Thread Vlad Seryakov
{ unsigned long l; unsigned char b[4]; } u; u.l = (unsigned long) addr.s_addr; sprintf(tlsPtr-nabuf, %u.%u.%u.%u, u.b[0], u.b[1], u.b[2], u.b[3]); #endif return tlsPtr-nabuf; } Michael A. Cleverly wrote: On 2/6/07, Vlad Seryakov [EMAIL PROTECTED] wrote: Try to compile

Re: [naviserver-devel] [ns_conn peeraddr] always = 0.0.0.0 on OpenBSD 4.0/sparc64?

2007-02-06 Thread Vlad Seryakov
Try this one: #include ns.h main() { unsigned char b[4]; struct in_addr addr; addr.s_addr = inet_addr(127.0.0.1); memcpy(b, addr.s_addr, 4); printf(%u.%u.%u.%u\n, b[0], b[1], b[2], b[3]); } Stephen Deasey wrote: On 2/6/07, Vlad Seryakov [EMAIL PROTECTED] wrote: On Linux

[naviserver-devel] Driver with epoll

2007-01-23 Thread Vlad Seryakov
; } drvPtr = drvPtr-nextPtr; } } } Ns_Log(Notice, exiting); Ns_MutexLock(drvLock); drvStopped = 1; Ns_CondBroadcast(drvCond); Ns_MutexUnlock(drvLock); } -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Driver with epoll

2007-01-23 Thread Vlad Seryakov
and runs. No spreading -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Driver with epoll

2007-01-23 Thread Vlad Seryakov
PROTECTED] wrote: Am 23.01.2007 um 17:14 schrieb Vlad Seryakov: and lighttpd also uses sendfile which is faster than user-spave read-send operation fastpath uses There you go. They do it all in kernel. I guess this can't be beat. Anyways, it is good to know where we stand. I think this may only

Re: [naviserver-devel] ns_cache pruning, when, how?

2007-01-19 Thread Vlad Seryakov
cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office

Re: [naviserver-devel] Quest for malloc

2007-01-16 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Puzzle for christmas

2006-12-25 Thread Vlad Seryakov
I have located the culprit! It does not have anything to do with our code, rather with Tcl. It seems that stdin/stdout/stderr channels are not properly handled on thread exit (not detached from the interp). This is a can of worms that I'm now opening... I hate to fiddle with that stuff in Tcl

Re: [naviserver-devel] Puzzle for christmas

2006-12-23 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] new memory allocator to test

2006-12-22 Thread Vlad Seryakov
Try to uncomment -DUSE_MALLOC in Makefile, looks like Solaris/OSX do not like too many mmap-ed pages Zoran Vasiljevic wrote: On 20.12.2006, at 15:33, Vlad Seryakov wrote: In my test.tcl when hitting nsd 5000 times i get 720 req/sec with zippy, 640 req/sec with vmalloc and 520 req/sec

Re: [naviserver-devel] new memory allocator to test

2006-12-22 Thread Vlad Seryakov
directly and its functions will be used instead of later-linked Tcl ones. Still, good to know how it works on different OSes, Thanks Zoran Vasiljevic wrote: On 22.12.2006, at 15:59, Vlad Seryakov wrote: Try malloctest, tclalloctest is not real test, it just calls TclThreadAllocObj to see how

Re: [naviserver-devel] new memory allocator to test

2006-12-20 Thread Vlad Seryakov
5.4 241844 56548 ?Ssl 00:19 0:02 /usr/local/ns/bin/nsd -i -u Zoran Vasiljevic wrote: On 20.12.2006, at 01:04, Vlad Seryakov wrote: I put together another thing to test, it runs fine with my Naviserver and worked well with my old Tcl/Adp tests. Speed is less than zippy

Re: [naviserver-devel] Quest for malloc

2006-12-19 Thread Vlad Seryakov
Yes, please Zoran Vasiljevic wrote: On 19.12.2006, at 15:57, Vlad Seryakov wrote: Zoran, can you test it on Solaris and OSX so we'd know that is not Linux related problem. I have a Tcl library compiled with nedmalloc and when I link against it and make #define MemAlloc Tcl_Alloc #define

Re: [naviserver-devel] Quest for malloc

2006-12-19 Thread Vlad Seryakov
gdb may slow down concurrency, does it run without gdb, also does it run with solaris malloc? Zoran Vasiljevic wrote: On 19.12.2006, at 16:06, Vlad Seryakov wrote: Yes, please ( I appended the code to the nedmalloc test program and renamed their main to main1) bash-2.03$ gcc -O3 -o

Re: [naviserver-devel] Quest for malloc

2006-12-19 Thread Vlad Seryakov
|PROT_EXEC, MAP_ANONYMOUS|MAP_PRIVATE, 0, 0); } void mfree(void *ptr, size_t size) { munmap(ptr, size); } Zoran Vasiljevic wrote: On 19.12.2006, at 16:15, Vlad Seryakov wrote: gdb may slow down concurrency, does it run without gdb, also does it run with solaris malloc? No problems. Runs

Re: [naviserver-devel] Quest for malloc

2006-12-19 Thread Vlad Seryakov
, some times it doesn't. Clearly it's timing related. The root cause is not going to be identified by injecting a whole bunch of random! Make this program shorter. On 12/19/06, Vlad Seryakov [EMAIL PROTECTED] wrote: I tried nedmalloc with LD_PRELOAD for my little test and it crashed vene before

Re: [naviserver-devel] Quest for malloc

2006-12-19 Thread Vlad Seryakov
I converted all to use pthreads directly instead of Tcl wrappers, and now it does not crash anymore. Will continue testing but it looks like Tcl is the problem here, not ptmalloc Stephen Deasey wrote: On 12/19/06, Vlad Seryakov [EMAIL PROTECTED] wrote: yes, it crashes when number of threads

Re: [naviserver-devel] Quest for malloc

2006-12-19 Thread Vlad Seryakov
I have no idea, i spent too much time on this still without realizing what i am doing and what to expect :-))) Zoran Vasiljevic wrote: On 19.12.2006, at 17:08, Vlad Seryakov wrote: I converted all to use pthreads directly instead of Tcl wrappers, and now it does not crash anymore

Re: [naviserver-devel] Quest for malloc

2006-12-19 Thread Vlad Seryakov
Right, with Ns_ functions it does not crash. Stephen Deasey wrote: On 12/19/06, Zoran Vasiljevic [EMAIL PROTECTED] wrote: On 19.12.2006, at 17:08, Vlad Seryakov wrote: I converted all to use pthreads directly instead of Tcl wrappers, and now it does not crash anymore. Will continue testing

Re: [naviserver-devel] Quest for malloc

2006-12-18 Thread Vlad Seryakov
into shared queue which other threads can re-use. But shared cache never gets returned so conn threads exit will not help with memory bloat. -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Quest for malloc

2006-12-18 Thread Vlad Seryakov
Still, even without the last free and with mutex around it, it core dumps in free(gPtr) during the loop. Stephen Deasey wrote: On 12/18/06, Vlad Seryakov [EMAIL PROTECTED] wrote: I tried to run this program, it crahses with all allocators on free when it was allocated in other thread. zippy

Re: [naviserver-devel] Quest for malloc

2006-12-18 Thread Vlad Seryakov
= 0; i nthreads; ++i) { Tcl_JoinThread(tids[i], NULL); } } Stephen Deasey wrote: On 12/18/06, Vlad Seryakov [EMAIL PROTECTED] wrote: Still, even without the last free and with mutex around it, it core dumps in free(gPtr) during the loop. OK. Still doesn't mean your program

Re: [naviserver-devel] Quest for malloc

2006-12-16 Thread Vlad Seryakov
Instead of using threadspeed or other simple malloc/free test, i used naviserver and Tcl pages as test for allocators. Using ab from apache and stresstest it for thousand requests i test several allocators. And having everything the same except LD_PRELOAD the difference seems pretty clear.

Re: [naviserver-devel] Quest for malloc

2006-12-16 Thread Vlad Seryakov
You can, it moves Tcl_Objs struct between thread and shared pools, same goes with other memory blocks.On thread exit all memory goes to shared pool. Zoran Vasiljevic wrote: On 16.12.2006, at 17:15, Stephen Deasey wrote: Yeah, pretty sure. You can only use Tcl objects within a single

Re: [naviserver-devel] Quest for malloc

2006-12-16 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Quest for malloc

2006-12-15 Thread Vlad Seryakov
://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL

Re: [naviserver-devel] Memory fragmentation (Was: Re: Benchmarks)

2006-12-14 Thread Vlad Seryakov
Yes, i did that, there are only few places where #ifdef is used, inside these functions and inside ReturnRange Zoran Vasiljevic wrote: On 14.12.2006, at 04:26, Vlad Seryakov wrote: I just replaced Tcl_FSStat in fastpath.c with stat and got about 5-9% increase in serving 26K image file. I am

Re: [naviserver-devel] Memory fragmentation (Was: Re: Benchmarks)

2006-12-13 Thread Vlad Seryakov
brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov

Re: [naviserver-devel] Memory fragmentation (Was: Re: Benchmarks)

2006-12-13 Thread Vlad Seryakov
in serving 26K image file. I am making #define which will make this compile time configurable, anyway i am in this already. -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Fwd: [Fwd: Re: Benchmarks]

2006-12-12 Thread Vlad Seryakov
@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608

Re: [naviserver-devel] Fwd: [Fwd: Re: Benchmarks]

2006-12-12 Thread Vlad Seryakov
at least 5-10 times, on the same machine. I have no swapping, plenty of available memory. Zoran Vasiljevic wrote: On 12.12.2006, at 16:03, Vlad Seryakov wrote: This runs at rate around 6000 req/sec, blows away Tcl .files and PHP, same speed as Apache static files You mean, the test.adp with pre

Re: [naviserver-devel] Fwd: [Fwd: Re: Benchmarks]

2006-12-12 Thread Vlad Seryakov
, 2006 at 10:03:09AM -0500, Vlad Seryakov wrote: Von:Gustaf Neumann [EMAIL PROTECTED] what happens, if you try byte-compiled code, e.g.: This runs at rate around 6000 req/sec, blows away Tcl .files and PHP, same speed as Apache static files Interesting! And so that suggests that a newer

Re: [naviserver-devel] Fwd: [Fwd: Re: Benchmarks]

2006-12-12 Thread Vlad Seryakov
Not sure what is the problem? Zoran Vasiljevic wrote: On 12.12.2006, at 16:18, Vlad Seryakov wrote: Yes, i called it test2.adp. It runs as fast as apache serves static files, ok, i just reran tests, it runs FASTER than apache serves test.html file. i used Well, what IS the problem

Re: [naviserver-devel] Fwd: [Fwd: Re: Benchmarks]

2006-12-12 Thread Vlad Seryakov
Right, i got lost in the logic :-))) .tcl files needs to be improved but overall i am back on track with my old belief that NS is faster than apache/PHP :-))) Zoran Vasiljevic wrote: On 12.12.2006, at 16:27, Vlad Seryakov wrote: Not sure what is the problem? :-)) You said: NS/ADP slower

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
as well. Stephen Deasey wrote: On 12/11/06, Vlad Seryakov [EMAIL PROTECTED] wrote: ... I actually even tried to test PHP inside Naviserver, same file, it was much slower than under Apache and .adp. I specifically chose simple examples and no DB, i wanted to see how simple web pages are served

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
it. bufsize is how many bytes to read, both seems pretty clear but why that situation occurs i still have no idea. Stephen Deasey wrote: On 12/12/06, Vlad Seryakov [EMAIL PROTECTED] wrote: When i started this i did not want to be the fastest, i wanted to see where we stand, even if it would turn out

Re: [naviserver-devel] Benchmarks

2006-12-12 Thread Vlad Seryakov
will never be fully filled? What kind of sense does that make. Reading nsd/driver.c, it's really not obvious what's going on. I will see into that, readahead could be unnesassary -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Fwd: [Fwd: Re: Benchmarks]

2006-12-12 Thread Vlad Seryakov
I am sorry, i have no idea how i got 6000 req/sec, i am trying to reproduce it and i cannot, all i got is around 1200 req/sec Zoran Vasiljevic wrote: On 12.12.2006, at 16:27, Vlad Seryakov wrote: Not sure what is the problem? :-)) You said: NS/ADP slower than Apache/PHP You tested

Re: [naviserver-devel] Fwd: [Fwd: Re: Benchmarks]

2006-12-12 Thread Vlad Seryakov
More salt on a wound:-))) Just compiled Tcl8.5, same test runs 40% slower than on 8.4. Still cannot get over 1200 req/sec, but with 8.5 cannot get higher than 700 req/sec I am done for today Vlad Seryakov wrote: I am sorry, i have no idea how i got 6000 req/sec, i am trying to reproduce

Re: [naviserver-devel] Benchmarks

2006-12-11 Thread Vlad Seryakov
://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED

Re: [naviserver-devel] Benchmarks

2006-12-11 Thread Vlad Seryakov
I tested AS 4.5, it is even slower than NS, not much but a little bit Zoran Vasiljevic wrote: On 11.12.2006, at 06:17, Vlad Seryakov wrote: The results are somewhat bad, Naviserver is 2x slower on simple adp page comparing to similar PHP page. Not that the channel stuff I added some time

Re: [naviserver-devel] Benchmarks

2006-12-11 Thread Vlad Seryakov
: On 11.12.2006, at 16:27, Vlad Seryakov wrote: I tested AS 4.5, it is even slower than NS, not much but a little bit Well, then it is not the Tcl channel stuff as 4.5 still uses open/read. In that case it must be something else. I guess you need to put shortcircuit code at various places to isolate

Re: [naviserver-devel] Benchmarks

2006-12-11 Thread Vlad Seryakov
are served. I always though that Apache/PHP is slower than Aolserver/Naviserver, looks like it is already history. Stephen Deasey wrote: On 12/11/06, Vlad Seryakov [EMAIL PROTECTED] wrote: I can sqeeze something from C maybe, but Tcl is a bottleneck, making for loop bigger than over 200-500

Re: [naviserver-devel] Benchmarks

2006-12-11 Thread Vlad Seryakov
yes, it is slower than from .adp page Zoran Vasiljevic wrote: On 11.12.2006, at 23:21, Vlad Seryakov wrote: Getting to C language every time i need to do stuff is not an option Did yu try ns_return as Stephen suggested

[naviserver-devel] Benchmarks

2006-12-10 Thread Vlad Seryakov
benchmarked NS before, but now i am surprised. I know Tcl is slow but that is at least 2 times. By making list bigger as 500 iterations, PHP works still faster than Tcl does 50 iterations. -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

[naviserver-devel] Release

2006-12-01 Thread Vlad Seryakov
ns_unregister_url2file.man ns_var.man -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

[naviserver-devel] Printf, wide ints and GNU warnings

2006-11-28 Thread Vlad Seryakov
be extended? -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Printf, wide ints and GNU warnings

2006-11-28 Thread Vlad Seryakov
Found %llu and it does not complain Vlad Seryakov wrote: Hi, Stephen, do you know how to avoid ugly warnings like unknown format when i want to use %q in Ns_DStringPrintf to output Tcl_WideInt type. Converting to double is ugly as well, i just put them for now to make it work but this needs

[naviserver-devel] Panic in Time object

2006-11-15 Thread Vlad Seryakov
) at pthread.c:752 #44 0xb7c3627b in start_thread () from /lib/libpthread.so.0 #45 0xb7d0208e in clone () from /lib/libc.so.6 -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Panic in Time object

2006-11-15 Thread Vlad Seryakov
Now it is panicing all the time and i am using Tcl time calls only Vlad Seryakov wrote: [Switching to thread 5 (Thread -1471153248 (LWP 22074))]#0 0xb7f21410 in ?? () (gdb) bt #0 0xb7f21410 in ?? () #1 0xa84fd3c8 in ?? () #2 0xb7d60ff4 in ?? () from /lib/libc.so.6 #3 0xa84fd3b4

Re: [naviserver-devel] Panic in Time object

2006-11-15 Thread Vlad Seryakov
I see additional checks about Tcl time object being shared and those are trigger panics now. Zoran Vasiljevic wrote: On 15.11.2006, at 18:27, Vlad Seryakov wrote: Now it is panicing all the time and i am using Tcl time calls only This is most probably introduced in last 2-3 weeks as I

Re: [naviserver-devel] Example doctools manpage for C API ?

2006-11-13 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Example doctools manpage for C API ?

2006-11-13 Thread Vlad Seryakov
/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http

Re: [naviserver-devel] [naviserver-commits] naviserver/doc/src/mann ns_sls.man, NONE, 1.1

2006-11-13 Thread Vlad Seryakov
on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ naviserver-commits mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/naviserver-commits -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED

Re: [naviserver-devel] Writer thread question

2006-11-07 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Writer thread question

2006-11-07 Thread Vlad Seryakov
Also, for test sake, can you change driver.c:2777 from if (n curPtr-bufsize) { to if (n 0) { and see if it will work, Ns_SockSend may send less bytes which is not an error condition Vlad Seryakov wrote: in my config it works fine with bufsize 8192. This parameter tells the writer size

Re: [naviserver-devel] Writer thread question

2006-11-07 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] brave new world

2006-10-07 Thread Vlad Seryakov
Stephen, i checked your patch for AS 4.1 regarding acceptmax, we can adopt it for our driver as well No, nothing bad. I think it's a great idea! But some of the newer APIs for this are weird because they handle more than socket IO, and we are worried about portability, right? I'm just

Re: [naviserver-devel] nsproxy API

2006-10-07 Thread Vlad Seryakov
What remains: naming of the module API (handle vs. handle-free) ns_exec or ns_slave i would keep both API, so i would decide in each particular case when to use which, i do not think they are mutual exclusive

Re: [naviserver-devel] nsproxy API

2006-10-06 Thread Vlad Seryakov
=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] nsproxy API

2006-10-06 Thread Vlad Seryakov
surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571

Re: [naviserver-devel] Documentation status

2006-10-06 Thread Vlad Seryakov
-referenced. Everything is in our power. -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

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

2006-09-27 Thread Vlad Seryakov
://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http

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

2006-09-27 Thread Vlad Seryakov
will be available Also, when do you plan to release 5.0? Zoran Vasiljevic wrote: On 27.09.2006, at 16:47, Vlad Seryakov wrote: It would be good to have documentation ready for the 5.0 release, at least all commands needs to be somewhat documented. Correct. As all (most) is now in CVS

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

2006-09-27 Thread Vlad Seryakov
cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office

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

2006-09-27 Thread Vlad Seryakov
I remember i've done it with my OCaml module, it registers handlers for .cmo files and handles them in C, not via Tcl. I had to provide API to ns_conn and other stuff of course but it is not that complicated as it looks. Zoran Vasiljevic wrote: On 27.09.2006, at 17:31, Vlad Seryakov wrote

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

2006-09-27 Thread Vlad Seryakov
. That means, those modules should be easily installed and/or referred from docs or main page somehow so it is easy to install them and see. Is it something worth trying? Zoran Vasiljevic wrote: On 27.09.2006, at 17:00, Vlad Seryakov wrote: Also, when do you plan to release 5.0? A Christmas present

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

2006-09-27 Thread Vlad Seryakov
-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] brave new world

2006-09-25 Thread Vlad Seryakov
=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Fwd: [TCLCORE] Can Tcl_GetObjResult() return shared object?

2006-09-23 Thread Vlad Seryakov
mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

[naviserver-devel] Documentation status

2006-09-23 Thread Vlad Seryakov
Here it is the doctools generated html files from source manpages. http://www.crystalballinc.com/vlad/nsdocs/toc.html doctool does all auto-referencing, so to make it pretty we just need CSS style. make build-doc calls dtplite and produces this under doc/html -- Vlad Seryakov 571 262-8608

Re: [naviserver-devel] SVN repository

2006-09-20 Thread Vlad Seryakov
Zoran, Stephen, What do you think about migrating to SVN? Vlad Seryakov wrote: I converted and loaded current CVS HEAD into naviserver SVN repository, CVS is still primary but we can play with SVN and decide to switch or keep CVS. Personally, i switched to SVN more than a year ago in all my

Re: [naviserver-devel] SVN repository

2006-09-20 Thread Vlad Seryakov
, Vlad Seryakov wrote: What do you think about migrating to SVN? What (mew) do I have to learn? How is this going to benefit me or the project? Not that I'm lazy to learn new things. I just have very little time, if this is not something that considerably adds value

Re: [naviserver-devel] SVN repository

2006-09-20 Thread Vlad Seryakov
It is already available, i imported all branches and tags into SVN, go to SF and try browse Subversion. Once everybody agree, i will re-import most recent CVS version. Zoran Vasiljevic wrote: On 20.09.2006, at 17:17, Vlad Seryakov wrote: Yes, subversion is open-source and available for all

Re: [naviserver-devel] SVN repository

2006-09-20 Thread Vlad Seryakov
We need trunk/ only, i guess thos eold tags and branches are CVs artifacts:-))0 Zoran Vasiljevic wrote: On 20.09.2006, at 17:30, Vlad Seryakov wrote: It is already available, i imported all branches and tags into SVN, go to SF and try browse Subversion. Once everybody agree, i will re

Re: [naviserver-devel] SVN repository

2006-09-20 Thread Vlad Seryakov
/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] SVN repository

2006-09-20 Thread Vlad Seryakov
___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] SVN repository

2006-09-20 Thread Vlad Seryakov
/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http

Re: [naviserver-devel] Simple http proxy handler

2006-09-18 Thread Vlad Seryakov
/naviserver-devel -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] Simple http proxy handler

2006-09-18 Thread Vlad Seryakov
Because this has never been exposed to Tcl before, and because seems to be (to me) a genuine bug which could bight us as we add more HTTP 1.1 support, it seems like now would be the time to take a step back and look at what we really want in this API. It's only one call to register, one to

<    1   2   3   4   5   >