Re: [naviserver-devel] Add watchdog to aolserver codebase as well?

2005-03-26 Thread Stephen Deasey
On Sat, 19 Mar 2005 18:11:23 +0100, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Well, here it is: > > > https://sourceforge.net/tracker/?func=detail&atid=353152&aid=746579&group_id=3152 > > Gentlemen, start your engines! ;-) Now, Zoran. Have you thought about writing a shell script? :-

[naviserver-devel] FYI: GNU source code

2005-03-31 Thread Stephen Deasey
I notice that there are two pieces of GPL-only source code in the core server distribution: the option parsing code in nsd/getopt.c, and an emulation of poll(2) using select(2) in nsd/unix.c. I think this means you cannot ship a binary under the MPL license as it contains GPL only code. I'm sure

[naviserver-devel] tcl.m4 -- ship with source?

2005-03-31 Thread Stephen Deasey
Should tcl.m4 be in cvs? It's needed to regenerate configure.in.

Re: [naviserver-devel] FYI: GNU source code

2005-04-01 Thread Stephen Deasey
r > such unix flaivor, we will see what can be done, it might have different > name for it. > > Zoran Vasiljevic wrote: > > > > Am 01.04.2005 um 05:02 schrieb Stephen Deasey: > > > >> I notice that there are two pieces of GPL-only source code in the core >

Re: [naviserver-devel] ns_parseargs segv

2005-04-02 Thread Stephen Deasey
Here's a minimal test case: test ns_parseargs-2.3 {object type conversion / display} -body { set tid [ns_thread begin { proc x {args} { ns_parseargs {-a} $args } x }] ns_thread wait $tid } -cleanup { unset -nocomplain -- tid } -result {} I'll t

Re: [naviserver-devel] poll emulation

2005-04-03 Thread Stephen Deasey
I think OSX is the only poll() underachiever we care about. Sourceforge has 10.1 and 10.2 hosts you can compile and test on, if you're interested: http://sourceforge.net/docman/display_doc.php?docid=762&group_id=1 On Apr 3, 2005 4:44 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I found this,

Re: [naviserver-devel] ns_parseargs segv

2005-04-03 Thread Stephen Deasey
I haven't figured this out yet :-( It's probably going to be next week before I can take another look. On Apr 2, 2005 4:29 PM, Stephen Deasey <[EMAIL PROTECTED]> wrote: > Here's a minimal test case: > > test ns_parseargs-2.3 {object type conversion / display} -b

Re: [naviserver-devel] Leak (quasi) in Tcl memory allocator

2005-04-05 Thread Stephen Deasey
In a fresh, empty server (make runtest) memory use doesn't climb at all (2.8MB res, 17MB virt). Do you have any C modules loaded? Use ttrace? On Apr 5, 2005 1:19 PM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hey friends, > > would you mind putting this in your nscp session and observe the

Re: [naviserver-devel] poll emulation

2005-04-05 Thread Stephen Deasey
On Apr 4, 2005 8:28 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I think it is safe for us to replace NS poll with attached implementation. > > Stephen Deasey wrote: > > I think OSX is the only poll() underachiever we care about. > > Sourceforge has 10.1 and 10.2 hos

Re: [naviserver-devel] Leak (quasi) in Tcl memory allocator

2005-04-05 Thread Stephen Deasey
On Apr 5, 2005 2:25 PM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 05.04.2005 um 23:21 schrieb Stephen Deasey: > > > In a fresh, empty server (make runtest) memory use doesn't climb at > > all (2.8MB res, 17MB virt). > > > > Do you have any

Re: [naviserver-devel] Leak (quasi) in Tcl memory allocator

2005-04-05 Thread Stephen Deasey
On Apr 5, 2005 2:44 PM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 05.04.2005 um 23:35 schrieb Stephen Deasey: > > > Fedora Core 3, 2.6.10 kernel, tcl 8.4.6. Looking at the tclConfig.sh, > > it was compiled -DUSE_THREAD_ALLOC=1. > > > > Is there

Re: [naviserver-devel] Leak (quasi) in Tcl memory allocator

2005-04-06 Thread Stephen Deasey
On Apr 6, 2005 9:12 AM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 06.04.2005 um 13:25 schrieb Zoran Vasiljevic: > > > > > I will try the b. first. Stephen, if you can confirm that > > between 8.4.6 and 8.4.9 the leak start to raise its ugly > > head, the work to fix that will be much les

Re: [naviserver-devel] Leak (quasi) in Tcl memory allocator

2005-04-06 Thread Stephen Deasey
On Apr 6, 2005 1:43 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Oh, yes, i remember read something about that, i am actually using up to > 100 threads at the same time and they are created/exit all the time. > That was one of my intentions to be able to submit data to conn thread > to minimize t

Re: [naviserver-devel] Leak (quasi) in Tcl memory allocator

2005-04-07 Thread Stephen Deasey
On Apr 7, 2005 3:31 AM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 06.04.2005 um 21:07 schrieb Stephen Deasey: > > >Correct threaded obj allocator to > > fully cleanup on exit and allow for > > reinitialization. [Bug #736426] > > (m

Re: [naviserver-devel] Leak (quasi) in Tcl memory allocator

2005-04-07 Thread Stephen Deasey
On Apr 7, 2005 6:35 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > i know about ns_job but never used it and never seen any examples how to > use it, it might be the solution, might be not It implements a thread pool, so if you're concerned about the costs of constantly creating new threads to per

Re: [naviserver-devel] Server command line

2005-04-09 Thread Stephen Deasey
I think this only works when you 'cvs tag MYTAG' and then 'cvs export -r MYTAG'. If you're always working off HEAD, you'll never see anything useful here. Just wait for the first glorious release! On Apr 9, 2005 10:39 AM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 09.04.2005 um 18:13

Re: [naviserver-devel] Server command line

2005-04-09 Thread Stephen Deasey
On Apr 9, 2005 10:13 AM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hm... > > Error: required -t option not specified > > Usage: bin/nsd [-h|V] [-c|-i|f] [-u ] [-g ] [-r ] > [-b |-B ] [-s ] -t > > This ain't very important but the syntax of the command line > *should* have been something li

Re: [naviserver-devel] ns_parseargs segv

2005-04-09 Thread Stephen Deasey
On Apr 9, 2005 8:36 AM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 04.04.2005 um 03:16 schrieb Stephen Deasey: > > > I haven't figured this out yet :-( > > It's probably going to be next week before I can take another look. > > > > >

Re: [naviserver-devel] Server command line

2005-04-10 Thread Stephen Deasey
On Apr 9, 2005 10:39 AM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > zvpb:~/sf/naviserver/nsd zoran$ ./nsd -V > NaviServer/4.0.10 (naviserver4_0) > CVS Tag: $Name: $ > Built: Apr 9 2005 at 18:34:07 > Tcl version: 8.4 > Platform:osx nsd/nsd.h:

Re: [naviserver-devel] Current Status

2005-04-10 Thread Stephen Deasey
I was hoping to make a release now-ish, mainly because I think the cache and protocols stuff will be a little more destabilizing than the changes made so far. It would simply provide a somewhat stable baseline for use/testing while HEAD moves on. I was going to call it 4.99.0, I wasn't going to m

[naviserver-devel] Re: [naviserver-commits] naviserver/nsd dns.c,1.1.1.1,1.2

2005-04-10 Thread Stephen Deasey
I guess this is an OSX problem? While looking at the configure tests, I noticed that gethostbyname_r etc. are not used on Linux, even though they're available. The standard call is thread safe, but only because glibc puts a lock around everything. I wonder if for performance the *_r variants sho

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd dns.c,1.1.1.1,1.2

2005-04-12 Thread Stephen Deasey
On 4/11/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 11.04.2005 um 05:05 schrieb Stephen Deasey: > > > I guess this is an OSX problem? While looking at the configure tests, > > I noticed that gethostbyname_r etc. are not used on Linux, even though > >

[naviserver-devel] Re: [naviserver-commits] naviserver/nsd conn.c,1.7,1.8

2005-04-16 Thread Stephen Deasey
On 4/16/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > *** 1240,1254 > break; > > ! case CStatusIdx: > ! if (objc > 2) { > ! int new_status; > ! if (Tcl_GetIntFromObj(interp, objv[2], &new_status) != > TCL_OK) { > !

Re: [naviserver-devel] New developer

2005-04-18 Thread Stephen Deasey
Welcome aboard, Bernd! On 4/18/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi friends, > > I would like to add my collegue Bernd to the list of developers > with CVS commit privs. > > Bernd is also dependent on the product (like we are) and is > building commercial web portals and CMS sys

Re: [naviserver-devel] ns_headers

2005-04-19 Thread Stephen Deasey
On 4/18/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hallo friends, > > Well, the "ns_headers" seem to do the trick we need. I'm puzzled how I > did not > see that call before. I could have saved ourselves much time... > It says in the function comment that this is an compatibility call. > Co

Re: [naviserver-devel] Configuration / Production system

2005-04-25 Thread Stephen Deasey
On 4/25/05, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > Hi all, > > just one quick (configuration) question: When I use the lastest naviserver as > a replacement for AS, is there anything to consider because of the new > features? Some kind of (even small) side effect one has to be aware of?

Re: [naviserver-devel] Configuration / Production system

2005-04-26 Thread Stephen Deasey
On 4/25/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > We have switched our app to Naviserver and there was one spot > I had to fix: ns_urlencode > > This call is now properly escaping blanks depending on the > part of the URL string: path-part or query-part. If you use > this command you mi

Re: [naviserver-devel] urlecode of single quote

2005-04-26 Thread Stephen Deasey
On 4/26/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I noticed that NS does not encode ', but As does. > > NS urlencode: ns_urlencode "123'456" returns 123'456 > > AS urlencode: ns_urlencode "123'456" returns 123%27456 > > which is correct? I hope (!) the new version in naviserver is corre

Re: [naviserver-devel] urlecode of single quote

2005-04-26 Thread Stephen Deasey
On 4/26/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > From urlencode.c comments: > > * All ASCII control characters (00-1f and 7f) and the URI > * 'delim' and 'unwise' characters are encoded. In addition, the > * following URI query component reserved characters are also > * encoded: > * > *

Re: [naviserver-devel] Configuration / Production system

2005-04-30 Thread Stephen Deasey
On 4/28/05, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > What I got when starting nsd with the same config file (and command args) that > works with plain AS: > > ...[28079.1076405344][-main-] Notice: prebind: tcp: 85.x.y.z:8000 = 3 > ...[28079.1076405344][-main-] Fatal: nsmain: no such server

Re: [naviserver-devel] release ?

2005-05-11 Thread Stephen Deasey
Hi. There's a couple of things I've been working on which I though would be good additions for a first release, but I ran into a few problems and I haven't time to get them working. So if y'all are happy to cut a tarball now, that's fine with me. Re the numbering, I thought 4.99.0 suggested we'r

Re: [naviserver-devel] release ?

2005-05-11 Thread Stephen Deasey
On 5/5/05, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > Am 04.05.2005 um 16:45 schrieb Vlad Seryakov: > > > We just do not have Web site, at least first page with some details > > > would be nice. I guess, hosting on sourceforge gives us html version > > > of web page only. > > > > Bernd can ta

Re: [naviserver-devel] ns_urlencode compat

2005-05-11 Thread Stephen Deasey
On 5/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi, > > Eh... seems that we do still have some (compat) problems there... > > I do not doubt that the current implementation in urlencode.c > is OK, but we do have many existing installations running on the > AOLserver and a couple of new

[naviserver-devel] naming nsdb database drivers

2005-05-25 Thread Stephen Deasey
I'd like to import the nspostgres module from aolserver CVS as nsdbpg. I have a new database driver loader I'm calling nsdbi, and one driver for it called nsdbipg. There needs to be some way of distinguishing between the two types of drivers, and I think prefixing with either db or dbi should do

Re: [naviserver-devel] ns_parseargs example

2005-05-26 Thread Stephen Deasey
On 5/26/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Stephen, > > Can you please give us some examples how to use the > ns_parseargs call? I would like to integrate this > in our code now and would need to instruct all my > collegues how to use it. > > Just a couple of examples would be suff

Re: [naviserver-devel] ns_parseargs example

2005-05-27 Thread Stephen Deasey
On 5/26/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Ah. Good tip. What I was also looking is the usage of "?" in the > specstring (never understood this one). The '?' signifies an optional argument, but it's used in the C API only. Tcl already has defaults, which is effectively an optio

Re: [naviserver-devel] ns_parseargs example

2005-05-27 Thread Stephen Deasey
On 5/27/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 27.05.2005 um 11:34 schrieb Stephen Deasey: > > > Where we left the discussion last time is how to deal with type > > checking. Boolean switches and range values are basically just forms > > of t

Re: [naviserver-devel] ns_parseargs example

2005-05-27 Thread Stephen Deasey
On 5/27/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Oh NO! Excatly that I did not wanted to do. I would not check argument > types on being integer or similar... This should really be left to the > programmer. Well, OK. I guess you can change your mind... :-) http://sourceforge.net/mai

Re: [naviserver-devel] ns_parseargs example

2005-05-28 Thread Stephen Deasey
On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > ... > > Alternatively, one could use lists instead of ":" like this: > > {-option flag} > {-option oneof {a b c}} > > This is more Tcl-like and allows you freedom in the variable name. > Example: > >ns_proc connect {{-eightb

Re: [naviserver-devel] ns_parseargs example

2005-05-28 Thread Stephen Deasey
On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 28.05.2005 um 13:36 schrieb Stephen Deasey: > > > To be compatible, the type specifier would have to be the third arg, > > but then you couldn't specify the type without also specifying a > > d

Re: [naviserver-devel] ns_parseargs example

2005-05-28 Thread Stephen Deasey
On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 28.05.2005 um 13:36 schrieb Stephen Deasey: > > > > > I think it looks like 'flag' is the literal default value for the > > -eightbit option. I do like the idea of lists, it is more Tcl

Re: [naviserver-devel] ns_parseargs example

2005-05-28 Thread Stephen Deasey
On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Am 28.05.2005 um 14:19 schrieb Stephen Deasey: > > > > ns_parseargs {{-eightbit flag} {-foo flag} args} > > > > How do you distinguish between -eightbit which is a boolean flag, and > > -foo which is a

Re: [naviserver-devel] Re: RFE #1202462

2005-05-30 Thread Stephen Deasey
On 5/30/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 30.05.2005 um 01:59 schrieb [EMAIL PROTECTED]: > > > Perfect > > > > Even more "perfect": > >instead of compile-time, you could select vfs operation >as a ns/server config option. > > I'd have to write Ns_FSStat, Ns_FSOpen,

Re: [Re: Re: [naviserver-devel] ns_parseargs example]

2005-05-30 Thread Stephen Deasey
On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 28.05.2005 um 21:01 schrieb [EMAIL PROTECTED]: > > > I like this but can it be list instead of oneof > > > > ns_proc connect {{-eightbit flag} {{-speed list {1200 2400 4800}} > > 4800} {port /dev/ttya}} > > > > Of course it can. But

Re: [Re: Re: [naviserver-devel] ns_parseargs example]

2005-06-01 Thread Stephen Deasey
On 5/30/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 30.05.2005 um 12:23 schrieb Stephen Deasey: > > > > > The other option is -eightbit:flag syntax. It's not perfect, but it's > > better than nested lists and has ~5 years of usage in the

Re: [naviserver-devel] Re: RFE #1202462

2005-06-01 Thread Stephen Deasey
On 5/30/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 30.05.2005 um 12:01 schrieb Stephen Deasey: > > > > > What's the return value of Ns_FSOpen? > > > > Something that can be fed to Ns_FSRead and/or Ns_FSClose > for example. I haven'

Re: [naviserver-devel] Re: RFE #1202462

2005-06-01 Thread Stephen Deasey
On 6/1/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 01.06.2005 um 14:10 schrieb Stephen Deasey: > > > On 5/30/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > > >> > >> Am 30.05.2005 um 12:01 schrieb Stephen Deasey: > &g

Re: [Re: Re: [naviserver-devel] ns_parseargs example]

2005-06-01 Thread Stephen Deasey
On 6/1/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 01.06.2005 um 13:24 schrieb Stephen Deasey: > > > So, how > > about assertions? > > > > Good. > > So, that means we scratch the idea of putting it in the > proc/ns_proc syntax and kee

Re: [Re: Re: [naviserver-devel] ns_parseargs example]

2005-06-01 Thread Stephen Deasey
On 6/1/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 01.06.2005 um 21:30 schrieb Stephen Deasey: > > > For input > > validation, some other mechanism should be used. > > > > Input of what kind? From Tcl or from C? > Do you mean form-input? Why

Re: [Re: Re: [naviserver-devel] ns_parseargs example]

2005-06-01 Thread Stephen Deasey
On 6/1/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 01.06.2005 um 22:23 schrieb Stephen Deasey: > > > That's a useful feature, but not when you're checking > > form input! > > Why not? Because form input always needs to be checked.

Re: [naviserver-devel] release ?

2005-06-08 Thread Stephen Deasey
On 5/4/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi friends, > > ... > > I could use this occasion to raise the "are we about to make a release" > question > again. As it seems, it would be fine for us to tag the CVS and make a > tarball. > What do you think? If yes, which version? 4.99? >

[naviserver-devel] Re: [naviserver-commits] naviserver NEWS,1.2,1.3

2005-06-08 Thread Stephen Deasey
The NEWS file is just like the ChangeLog in the sense that it only refers to changes in the package it's contained in. Each of the modules listed below needs it's own NEWS file. Which reminds me, we need to make sure the modules are in good shape. At a minumum, they each need a README, ChangeLog

Re: [naviserver-devel] compilation ?

2005-06-09 Thread Stephen Deasey
On 6/9/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 09.06.2005 um 23:05 schrieb Vlad Seryakov: > > > I just fixed that in the CVS > > Hmmm... now it does compile but I still do not understand one thing: > include/config.h file overlapps with TCL_DEFS in various places. > Is this willing

[naviserver-devel] Re: [naviserver-commits] modules/nsfreetds nsfreetds.c,1.5,1.6

2005-06-09 Thread Stephen Deasey
Before you cvs commit, you must cvs diff. This commit message does not go with this change. It doesn't even go with this module. On 6/9/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/modules/nsfreetds > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23043/m

[naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-09 Thread Stephen Deasey
Before you cvs commit, you must make test. Two tests are broken... We're strugeling for tests, but tclresp.c is one file that does have a reasonably complete set. Can you add some for the new commands? Also, the cut 'n paste comment for Ns_ObjvByteArray is no longer correct. I was wondering, i

Re: [naviserver-devel] compilation ?

2005-06-09 Thread Stephen Deasey
On 6/9/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > HAVE_TM_GMTOFF is not defined in the config.h.in > so it never gets to config.h Ah, thanks. I've added the right call in the configure script to make this happen. > The problem i usually have with config.h if i include different packages >

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-09 Thread Stephen Deasey
On 6/9/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I have no failed tests > > Tests running in interp: /home/vlad/src/naviserver/nsd/nsd > Tests located in: /home/vlad/src/naviserver/tests > Tests running in: /home/vlad/src/naviserver/tests > Temporary files stored in /home/vlad/src/naviserv

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-09 Thread Stephen Deasey
Seryakov <[EMAIL PROTECTED]> wrote: > ns_respond now supports binary so ns_returnbinary is redundant, but i > think Tcl_GetByteArray works with string and byte array, just > Tcl_GetByteArray does not do eny encoding/converting to/From utf. > > Stephen Deasey wrote: > > Be

Re: [naviserver-devel] compilation ?

2005-06-10 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 10.06.2005 um 08:21 schrieb Stephen Deasey: > > > On 6/9/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > > > >> HAVE_TM_GMTOFF is not defined in the config.h.in > >> so it never

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-10 Thread Stephen Deasey
On 6/10/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I thought about ns_return -binary as well. first -binary flag is > optional so it will be compatible with the old API. Let me try this. > > Zoran Vasiljevic wrote: > > > > Am 10.06.2005 um 15:41 schrieb Vlad Seryakov: > > > >> * Tcl_GetByteArr

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-10 Thread Stephen Deasey
For future reference, you can hande this by using the Ns_ObjvObj option/arg type which just gives you back the underlying Tcl object. You can then handle it however you like. On 6/10/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > yes, parsing should check for nulls an dlimits, just to see if ide

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-10 Thread Stephen Deasey
Tcl_ObjType byteArrayType = Tcl_GetObjType("bytearray"); On 6/10/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > The problem is, there is no Public API to check object for ByteArray > type. You have to include tclInt.h for this which is not public. > > Stephen Deasey

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-10 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 10.06.2005 um 17:50 schrieb Vlad Seryakov: > > > Second try :-))) > > You'd get (probably) a sigsegv if somebody says: > >ns_return -binary 200 > > Yes, this arg parsing can be a PITA. Therefore I like > Stephens tclobjv code :

Re: [naviserver-devel] Re: [naviserver-commits] naviserver/nsd tclobjv.c,1.7,1.8 tclresp.c,1.4,1.5

2005-06-10 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 10.06.2005 um 17:42 schrieb Stephen Deasey: > > > That being the > > case, you should be able to check the type of the object given to > > ns_return, and act accordingly > > > > And w

Re: [naviserver-devel] binder, sockets

2005-06-10 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 10.06.2005 um 18:27 schrieb Vlad Seryakov: > > > We can use > > Tcl_FSConvertToPathType or Tcl_FsStat > > Yes. This could be a solution. I will > look into that later today... Ns_PathIsAbsolute() ?

Re: [naviserver-devel] Move to somekind of chatroom?

2005-06-10 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi friends, > > As we discuss that much, wouldn't it be faster/easier/better > to go to some chatroom on AIM or elsewhere? I'm not sure that it would help -- I like to read the code and have a think to see if I'm smoking crack or not in t

Re: [naviserver-devel] binder, sockets

2005-06-10 Thread Stephen Deasey
I'd like to keep this as is for the moment. On 6/10/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Good call, i will move. Until we find good way for determining file > paths, i will check for unix style for now. > > Also, do we want to keep old style virtual hosting by loading nssock > globally

Re: [naviserver-devel] arg checking looks good!

2005-06-10 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Aha! Stephen, this is the thing you talked about? > > driver.c: In function `Ns_DriverInit': > driver.c:408: warning: too few arguments for format > > There are couple of those arround... Yeah, it's a two pronged attack: junk useless

Re: [naviserver-devel] config.h

2005-06-10 Thread Stephen Deasey
On 6/10/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Is it possible to rename config.h to nsconfig.h? Yep, done.

Re: [naviserver-devel] strict aliasing?

2005-06-11 Thread Stephen Deasey
On 6/11/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi > > When you compile w/o debugging (i.e. with optimisation) > the GCC spits whole-lotta stuff like that: > > tclthread.c:401: warning: dereferencing type-punned pointer will > break strict-aliasing rules > tclthread.c:401: warning: dere

Re: [naviserver-devel] still left to fix

2005-06-12 Thread Stephen Deasey
On 6/11/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi > > I have tested the compilation on following platforms/os'es > > Solaris(sparc) 2.6/2.8 > Linux(intel) SuSE8.2/9.1 > Mac OSX(powerpc) Darwin 6.8/7.9/8.0 (aka Mac OSX 10.2/10.3/10.4) > > Next week we will finish the Window

Re: [naviserver-devel] still left to fix

2005-06-13 Thread Stephen Deasey
On 6/13/05, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > Hi Stephen, > > > Now compiles clean for me with gcc 4 using flags: -02 -Wall > > -Wno-implicit-int. (Linux FC3). Yippee! > > I compiled well last tuesday without mentionable warnings but then, when > following the 'compile ?' thread,

Re: [naviserver-devel] Move nscgi to modules?

2005-06-13 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi! > > In the process of wholesale cleanup, we might consider > moving the nscgi module out of the main server and > into the modules section. > > The nslog/nsperm/nscp are pretty important to the server > operation and I'd leave them whe

Re: [naviserver-devel] binder, sockets

2005-06-13 Thread Stephen Deasey
On 6/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi! > > I'm in the process of cleaning up the code in order to > re-enable Windows compilation. > I've found several things we'd need to unify somehow: > > We have (until recently) had only TCP protocol support > hence the calls like: > >

Re: [naviserver-devel] website

2005-06-13 Thread Stephen Deasey
On 6/6/05, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > Hi, > > _please_ excuse the delay for bringing up the homepage. There is a first > version at www.servercult.com now. Don't worry about it, it took me just as long to reply... :-) > Feel free to bring up everything you like or disli

Re: [naviserver-devel] Move nscgi to modules?

2005-06-13 Thread Stephen Deasey
On 6/13/05, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > How about nsdb? This is an important module for people, but I'm > > hoping my newer nsdbi will be a big enough improvement that it becomes > > the new standard. In that case, it's kind of confusing to ship the > > old version. Maybe it

Re: [naviserver-devel] website

2005-06-14 Thread Stephen Deasey
On 6/13/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 13.06.2005 um 17:19 schrieb Zoran Vasiljevic: > > > What infrastructure would be needed to run MediaWiki? > > Ehm: > Prerequisite tools > > To install MediaWiki you need four components: > > MySQL - an SQL database to store the Wik

Re: [naviserver-devel] website

2005-06-14 Thread Stephen Deasey
On 6/13/05, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > > Until direct login is possible for you please send me any content you > > > like to add, see, change! > > I forgot to mention that this is just because we decided to rewrite the > frontend display stuff so that it uses tdom/xml/xslt an

Re: [naviserver-devel] codestyle

2005-06-14 Thread Stephen Deasey
On 6/13/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi ! > > I would like to see if we can agree on the style used when > formatting source-code. > > What I find very annoying is the usage of the TAB. According > to both AOL and TCL style-guides, the TAB is deprecated. > Now, in the Tcl pro

Re: [naviserver-devel] Move nscgi to modules?

2005-06-14 Thread Stephen Deasey
On 6/13/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Yes, i agree nscgi should be in the core. > Regarding nsdb, until new dbi interface tested and we have enough > drivers i would keep nsdb in the core. It is very important module. Yeah, that's what I thought. I noticed the postgres driver im

Re: [naviserver-devel] binder, sockets

2005-06-14 Thread Stephen Deasey
On 6/13/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 13.06.2005 um 09:37 schrieb Stephen Deasey: > > > > > Ns_SockListenTcp() should probably replace Ns_SockListenEx() with it's > > backlog parameter? The passed backlog should be checked, and if

Re: [naviserver-devel] website

2005-06-14 Thread Stephen Deasey
On 6/14/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 14.06.2005 um 09:19 schrieb Stephen Deasey: > > > > > They do. I wasn't sure how hard it would be to set up, so I gave it a > > try. Behold: http://naviserver.sourceforge.net ! It wasn't

Re: [naviserver-devel] Re: RFE #1202462

2005-06-14 Thread Stephen Deasey
On 6/14/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 01.06.2005 um 20:19 schrieb Zoran Vasiljevic: > > >> I don't see anything wrong with using Tcl_VFS* directly to read the > >> config file, write to a log file etc., and the tcl commands in > >> nsd/tclfile.c should be replaced by simp

Re: [naviserver-devel] codestyle

2005-06-15 Thread Stephen Deasey
On 6/14/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 14.06.2005 um 09:31 schrieb Stephen Deasey: > > > > > I think this page needs some love: > > > > http://naviserver.sourceforge.net/wiki/index.php/Code_Standards > > > > > >

Re: [naviserver-devel] binder, sockets

2005-06-15 Thread Stephen Deasey
On 6/13/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 13.06.2005 um 09:37 schrieb Stephen Deasey: > > > > > Ns_SockListenTcp() should probably replace Ns_SockListenEx() with it's > > backlog parameter? The passed backlog should be checked, and if

Re: [naviserver-devel] codestyle

2005-06-15 Thread Stephen Deasey
On 6/15/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 15.06.2005 um 09:06 schrieb Stephen Deasey: > > > I think we should make nsexample more of a template for reuse, and > > make the Code Standards document more How and Why. We'd remove the >

Re: [naviserver-devel] Re: RFE #1202462

2005-06-15 Thread Stephen Deasey
On 6/15/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 15.06.2005 um 08:54 schrieb Stephen Deasey: > > > > How will you load modules at startup? dlopen() etc. take a file name. > > > > I will start with this and see if it suffices: > >

Re: [naviserver-devel] maxinput/maxpost: why both?

2005-06-16 Thread Stephen Deasey
On 6/16/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 16.06.2005 um 19:40 schrieb Vlad Seryakov: > > > It looks like maxpost just checks Content-Length: header, it is not > > hard limit like maxinput which limits the real memory buffer for > > uploaded content. > > > > As I see, the max

Re: [naviserver-devel] uploading large files

2005-06-16 Thread Stephen Deasey
On 6/16/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi! > > I ran into several problems while debuggging a problem at the > customer site related to uploading files and size of those files. > > As it looks like, the NS/AS spools all the incoming content into > the memory (urks!). Depending

Re: [naviserver-devel] uploading large files

2005-06-16 Thread Stephen Deasey
On 6/16/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 16.06.2005 um 23:35 schrieb Vlad Seryakov: > > > I understand that but my question is: > > How and when all content will be downloaded? > > By the driver? By the conn thread on first call? > > > > The driver will load up to maxreadah

Re: [naviserver-devel] uploading large files

2005-06-16 Thread Stephen Deasey
On 6/16/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 16.06.2005 um 22:13 schrieb Stephen Deasey: > > > > > At any time before the registered proc asks for the content it can > > check the content length header and decide whether it is too large to >

Re: [naviserver-devel] uploading large files

2005-06-17 Thread Stephen Deasey
On 6/16/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 16.06.2005 um 22:13 schrieb Stephen Deasey: > > > > > It was at one point implemented with mmap: > > > > http://cvs.sourceforge.net/viewcvs.py/aolserver/aolserver/nsd/ > > driver.c?rev=1.

Re: [naviserver-devel] uploading large files

2005-06-17 Thread Stephen Deasey
On 6/16/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 16.06.2005 um 18:18 schrieb Zoran Vasiljevic: > > > > > One can even explore the memmap machinery and see if we can > > entirely drop the temp-file and use the system paging for that: > > so if the input exceeds the maxinput, we just

Re: [naviserver-devel] uploading large files

2005-06-17 Thread Stephen Deasey
On 6/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 17.06.2005 um 09:06 schrieb Stephen Deasey: > > > > However... Vlad's question about ns_getform has me wondering about > > the common case of HTTP file upload. Consider a 10MB file upload -- &g

Re: [naviserver-devel] uploading large files

2005-06-17 Thread Stephen Deasey
On 6/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 17.06.2005 um 09:24 schrieb Stephen Deasey: > > > > > I believe this is pretty common, but I'm not sure if this is what you > > want. An anonymous mapping is still going to account against

Re: [naviserver-devel] uploading large files

2005-06-17 Thread Stephen Deasey
On 6/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 17.06.2005 um 10:07 schrieb Stephen Deasey: > > > You can of course fake it: as soon as the connection which accepts > > the large file runs it begins a server push, the first page of which > > co

Re: [naviserver-devel] uploading large files

2005-06-17 Thread Stephen Deasey
On 6/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 17.06.2005 um 12:30 schrieb Zoran Vasiljevic: > > >> > >> I see that quite a lot of plumbing must be done > >> to get this working. We must keep the Sock for > > > > Wrong. Not very many plumbings, as we have almost > all in place. >

Re: [naviserver-devel] uploading large files

2005-06-17 Thread Stephen Deasey
On 6/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > > Am 17.06.2005 um 21:23 schrieb Stephen Deasey: > > > > > Sounds like a plan for stage 1. > > > > Let me then try this one and see how far I'll come :-) > > > > > > If the

Re: [naviserver-devel] New member

2005-06-17 Thread Stephen Deasey
On 6/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Hi! > > I have included my collegue Ibrahim Tannir (username itannir) > to the list of project developers. He will mainly take care > about the Windos part of the code, improve it as the time goes > by and hopefully arrange a decent build-s

[naviserver-devel] Re: [naviserver-commits] naviserver/nsd return.c,1.5,1.6

2005-06-24 Thread Stephen Deasey
On 6/24/05, abe-t <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/naviserver/nsd > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18008/nsd > > Modified Files: > return.c > Log Message: > Added Ns_ConnReturnPath to open a file and send its contents > via the connect

<    1   2   3   4   5   6   7   >