Re: [naviserver-devel] nsdbpg SSL mode

2013-12-05 Thread Stephen Deasey
On Thu, Dec 5, 2013 at 11:44 PM, Ian Harding wrote: > > My naviserver nsdbipg module seems to barf on it. > psql connects fine. nsbipg is configured with a datasource param which lets you pass any key=value pairs directly through to libpq. According to: http://www.postgresql.org/docs/current

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

2012-12-06 Thread Stephen Deasey
On Tue, Dec 4, 2012 at 10:55 PM, Gustaf Neumann wrote: > 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

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

2012-12-06 Thread Stephen Deasey
On Tue, Dec 4, 2012 at 10:24 PM, Gustaf Neumann wrote: > > Today, i was hunting another problem in connection with nsssl, which > turns out to be a weakness of our interfaces. The source for the problem > is that the buffer management of OpenSSL is not aligned with the buffer > management in navis

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

2012-12-04 Thread Stephen Deasey
On Wed, Nov 28, 2012 at 10:38 AM, Gustaf Neumann 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 having maxthreads == 2, having less requests > queued. > >

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

2012-12-04 Thread Stephen Deasey
On Tue, Dec 4, 2012 at 10:55 PM, Gustaf Neumann wrote: > > The code in naviserver-connthreadqueue handles already read-aheads with SSL. > i have removed there these hacks already; i think, these were in part > responsible for the sometimes erratic response times with SSL. Well, I think the thing

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

2012-12-04 Thread Stephen Deasey
On Thu, Nov 29, 2012 at 6:51 PM, Gustaf Neumann wrote: > > It turned out > that the large queueing time came from requests from taipeh, which contained > several 404 errors. The size of the 404 request is 727 bytes, and therefore > under the writersize, which was configured as 1000. The delivery o

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

2012-12-04 Thread Stephen Deasey
On Mon, Dec 3, 2012 at 10:38 AM, Gustaf Neumann wrote: > > All changes are on bitbucket (nsssl and naviserver-connthreadqueue). I found this nifty site the other day: https://www.ssllabs.com/ssltest/analyze.html?d=next-scripting.org It's highlighting a few things that need fixed in the nss

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

2012-12-04 Thread Stephen Deasey
On Tue, Dec 4, 2012 at 5:21 PM, Gustaf Neumann wrote: > > * Only content sent via Ns_ConnWriteVChars has the chance to get > compressed. > ie. dynamic content with a text/* mime-type. The idea here was you don't want to try and compress gifs an so on, and static content could be pre-compressed o

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

2012-11-18 Thread Stephen Deasey
On Sun, Nov 18, 2012 at 1:22 PM, Gustaf Neumann wrote: > 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 wrote: > > minthreads = 2 > > creating threads, when idle == 0 > 1

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

2012-11-13 Thread Stephen Deasey
On Tue, Nov 13, 2012 at 11:18 AM, Gustaf Neumann 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 27 >total cputime 00:06:14 What if you set min

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

2012-11-02 Thread Stephen Deasey
On Thu, Nov 1, 2012 at 12:13 PM, Gustaf Neumann 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 the > documentation pages with multiple commands into single page

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

2012-11-02 Thread Stephen Deasey
On Wed, Oct 31, 2012 at 12:54 PM, Stefan Sobernig wrote: > > I'd also appreciate a heads-up on a previous thread: > > http://www.mail-archive.com/naviserver-devel@lists.sourceforge.net/msg01811.html > > Was the idea of a "default" method ("*" or the like) for the > ns_register_* cmd family ever im

Re: [naviserver-devel] Changing pageroot

2012-11-02 Thread Stephen Deasey
On Thu, Nov 1, 2012 at 4:03 PM, David Osborne wrote: > > Trying to work out if this is a config error or a code difference... any > pointers? In general, add this to your config: ns_section "ns/parameters" ns_param logdev true And the log file will tell you exactly which config param

Re: [naviserver-devel] ns_urldecode -charset

2012-10-30 Thread Stephen Deasey
On Tue, Oct 30, 2012 at 7:59 PM, Stephen Deasey wrote: > > But the code points of iso88591 are a subset of utf8... Actually, this doesn't make sense. The byte encoding of code points above 128 uses two bytes for utf8, but only one byte for iso88591. Looks like you ne

Re: [naviserver-devel] ns_urldecode -charset

2012-10-30 Thread Stephen Deasey
On Tue, Oct 30, 2012 at 10:38 AM, David Osborne wrote: > Hi, > > We're currently in the process of porting a fairly large code base from > Aolserver to Naviserver for testing (using Naviserver v4.99.4 on Debian > Squeeze). > > One thing that has come up so far is that ns_urldecode seems to have dr

Re: [naviserver-devel] compression

2012-10-27 Thread Stephen Deasey
On Sat, Oct 27, 2012 at 1:13 PM, Gustaf Neumann 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 to NOT send the body gzipped, say by using a q value of >> 0 (which we don't actu

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

2012-10-27 Thread Stephen Deasey
On Fri, Oct 26, 2012 at 11:41 PM, Jeff Rogers wrote: > Stephen Deasey wrote: >> .., but I wonder if >> we're even attempting to do the right thing? > > Do we even know what the right thing is? It could be any of > - ... > - minimize resource usage > - ada

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

2012-10-27 Thread Stephen Deasey
On Fri, Oct 26, 2012 at 11:44 PM, Jeff Rogers wrote: > Andrew Piskorski wrote: >> On Fri, Oct 26, 2012 at 08:30:26PM +0100, Stephen Deasey wrote: >> >>> I was thinking it could work something like this: >>> >>> - driver acquires lock, takes first conn thr

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

2012-10-26 Thread Stephen Deasey
Interesting, but I wonder if we're not thinking this through correctly. My suggestion, and your here, and Gustaf's recet work are all aimed at refining the model as it currently is, but I wonder if we're even attempting to do the right thing? > So I'm assuming that the available processing power -

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

2012-10-26 Thread Stephen Deasey
On Thu, Oct 25, 2012 at 10:31 AM, Gustaf Neumann wrote: > I don't think, that a major problem comes from the "racy" > notification of queuing events to the connection threads. > This has advantages (make os responsible, which does this > very efficiently, less mutex requirements) and disadvantage

Re: [naviserver-devel] Hello

2012-10-26 Thread Stephen Deasey
On Wed, Oct 24, 2012 at 5:01 PM, Agustin Lopez wrote: > > When I run the server I get error with Ns_ConfigSection from my compiled > nsldap. > I suppose that it is a known problem. Any pointer to work it? What is the exact error message? --

Re: [naviserver-devel] compression

2012-10-26 Thread Stephen Deasey
On Thu, Oct 25, 2012 at 9:20 PM, Jeff Rogers wrote: > It looks like we're enabling compression for all http/1.1 requests > regardless of whether it was specified in the request header, or even > specifically disallowed. This seems incorrect, but the code has been in > place for several years (con

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

2012-10-17 Thread Stephen Deasey
On Wed, Oct 17, 2012 at 4:55 AM, Maurizio Martignano wrote: > OK > > Simple reason: Visual Studio complains about that stuff and it is annoying. Looks like Visual Studio 2012 comes with a C compiler: http://msdn.microsoft.com/en-us/library/bb384838.aspx "Visual Studio includes a C compiler th

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

2012-10-11 Thread Stephen Deasey
On Wed, Oct 10, 2012 at 9:44 PM, Jeff Rogers wrote: > > It is possible to get into a situation where there are connections > queued but no conn threads running to handle them, meaning nothing > happens until a new connection comes in. When this happens the server > will also not shut down cleanly

Re: [naviserver-devel] lurking bugs: file name encoding

2012-10-11 Thread Stephen Deasey
On Wed, Oct 10, 2012 at 9:44 PM, Jeff Rogers wrote: > > ns_returnfile doesn't decode passed filenames from tcl correctly. As a > result, [file exists $file] could report that a file does exist but > [ns_returnfile 200 text/html $file] could give a "not found" error. The > circumstances needed to

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

2012-10-10 Thread Stephen Deasey
On Wed, Oct 10, 2012 at 10:09 AM, Gustaf Neumann wrote: > > Using a "_ns_set" capable of handling "-shared" which just calls > existing "ns_set" with the unlocked semantics would not work, > using a lock with for all "_ns_set" commands is not good either > without modifying the existing "ns_set" s

Re: [naviserver-devel] Greetings

2012-10-09 Thread Stephen Deasey
On Tue, Oct 9, 2012 at 7:49 PM, Zoran Vasiljevic wrote: > > On 09.10.2012, at 20:10, Jeff Rogers wrote: > > Hi Jeff! > >> Propose >> changes on the development list and then make changes to the main > > This is how we have worked so far. This mostly covers bug fixes. > Whole-sale changes are littl

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

2012-10-09 Thread Stephen Deasey
On Tue, Oct 9, 2012 at 7:49 PM, Jeff Rogers wrote: > I don't know that people love it so much as that there is no exact > replacement for the functionality. > > I'm a big proponent of compatibility but shared sets as they previously > existed are problematic. I wouldn't be at all surprised if the

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

2012-10-09 Thread Stephen Deasey
On Tue, Oct 9, 2012 at 11:11 AM, Gustaf Neumann wrote: > Stephen, > > do you remember why you took out the -shared flag from ns_set? > > https://bitbucket.org/naviserver/naviserver/changeset/1cbaf1acc09436f2a1c56102269a8b7fab0be168 > > > it seems that some people love it. We have either to take it

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

2012-01-28 Thread Stephen Deasey
On Sat, Jan 28, 2012 at 8:19 PM, Ibrahim Tannir wrote: > > However, the entire asynchronous IO in Windows is really messy > business, since the entire mechanism of processing IO > notifications is tied to a window. I see what y'all mean. That's a lot of non-shared code. I suppose you can always

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

2012-01-28 Thread Stephen Deasey
On Sat, Jan 28, 2012 at 1:26 PM, Zoran Vasiljevic wrote: > > On Windows there are some limitations as how you can > do non-blocking operations... In particular, there > seems to be a problem with non-blocking reads/writes > on unnamed pipes... They simply do not work on windows, > at least as to o

Re: [naviserver-devel] Socket buffer sizes

2010-05-10 Thread Stephen Deasey
On Mon, May 10, 2010 at 7:22 PM, Andrew Piskorski wrote: > On Mon, May 10, 2010 at 11:39:26AM +0200, Vasiljevic Zoran wrote: > >> So far I could understand from reading tons of docs >> found all over the internet, the socket buffer sizes are >> crucial for optimizing the network peformance related

Re: [naviserver-devel] Socket buffer sizes

2010-05-10 Thread Stephen Deasey
On Mon, May 10, 2010 at 12:39 PM, Vasiljevic Zoran wrote: > > What I have in mind is to: > > a. make necessary changes to the driver code so that socket options > are set before we actually call listen(). > > The a. is really the most work as it will require either chaning > existing (sub-optimal)

Re: [naviserver-devel] Socket buffer sizes

2010-05-10 Thread Stephen Deasey
On Mon, May 10, 2010 at 10:39 AM, Vasiljevic Zoran wrote: > Hi! > > I am in the process of evaluating the possibility to > "correct" the current behaviour WRT manipulating > socket buffer sizes... > > So far I could understand from reading tons of docs > found all over the internet, the socket buf

Re: [naviserver-devel] Ns_ConnWriteData needs Ns_ConnFlushData ?

2010-05-05 Thread Stephen Deasey
On Wed, May 5, 2010 at 8:46 AM, Vasiljevic Zoran wrote: > > On 04.05.2010, at 18:58, Stephen Deasey wrote: > >> >> What is being buffered that you're trying to flush? > > The headers! It is just a kind-of 304-type of response or > a response containing ju

Re: [naviserver-devel] Ns_ConnWriteData needs Ns_ConnFlushData ?

2010-05-04 Thread Stephen Deasey
On Tue, May 4, 2010 at 4:58 PM, Vasiljevic Zoran wrote: > Hi! > > Quite often I see: > >    Ns_ConnWriteData(conn, NULL, 0, 0); > > This is OK but not very readable. Can we add something like > >    Ns_ConnFlushData(conn, flags) > > convenience wrapper that would supply the NULL buffer and > zero

Re: [naviserver-devel] Ns_ConnFlushHeaders() deprecated: why?

2010-05-04 Thread Stephen Deasey
On Tue, May 4, 2010 at 4:50 PM, Vasiljevic Zoran wrote: > Hi all! > > Tcl_WideInt > Ns_ConnFlushHeaders(Ns_Conn *conn, int status) > { >     Conn *connPtr = (Conn *) conn; > >     Ns_ConnSetResponseStatus(conn, status); >     Ns_ConnWriteData(conn, NULL, 0, 0); > >     return connPtr->nContentSent

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-12 Thread Stephen Deasey
On Mon, Apr 12, 2010 at 3:58 PM, Gustaf Neumann wrote: > > Cool, good guess, but it did not help - but the proposed > change should go into the repository. Actually this doesn't make any sense and shows how long it's been since I've touched any C. > But, i got that sucker: In the following ioc

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-12 Thread Stephen Deasey
On Mon, Apr 12, 2010 at 2:33 PM, Gustaf Neumann wrote: > > Without the patch naviserver hangs (blocks) on that machine already > at the first or second request. This should never happen as the listen socket is set to non-blocking mode, here: http://bitbucket.org/naviserver/naviserver/src/tip/

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

2010-04-12 Thread Stephen Deasey
On Sun, Apr 11, 2010 at 4:42 PM, Gustaf Neumann wrote: > > The current solution works, but returns the chunked markup > (which is fine for me, doing the chunked-decode in Tcl), > but should done in (similar to the chunked encoding for forms). This is not going to work reliably because of the fol

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

2010-04-12 Thread Stephen Deasey
On Sun, Apr 11, 2010 at 4:42 PM, Gustaf Neumann wrote: > > PS: i had to do a "hg push -f ...". Not sure, if this is intentional. > Do the commits to tip look right? All that's happened here is that you've made changes to your checkout without first updating it. In the meantime, Zoran has made ch

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-12 Thread Stephen Deasey
On Sun, Apr 11, 2010 at 4:16 PM, wrote: > > changeset: 2575:3963e46562e8 > user: Gustaf Neumann > date: Sun Apr 11 17:16:27 2010 +0200 > summary: Fix to prevent multiple DriverAccepts on the same socket. > The original coded relied on the fact that later accepts lead to >

Re: [naviserver-devel] Where is ChangeLog?

2010-03-06 Thread Stephen Deasey
On Sat, Mar 6, 2010 at 5:43 PM, Vasiljevic Zoran wrote: > > On 06.03.2010, at 16:30, Vasiljevic Zoran wrote: > >> Or should I need to do some other "magic" after "hg ci" ??? > > I see: "hg push". Yeah, 'commit' is local, 'clone' and 'push' are like rsync up and down. You can also do 'incoming'

Re: [naviserver-devel] Mercurial does not substitute tags?

2010-03-06 Thread Stephen Deasey
On Sat, Mar 6, 2010 at 1:18 PM, Vasiljevic Zoran wrote: > Hi! > > It seems to me that we miss RCS Tag substitution. > Is this so deliberately? If yes, what's the point > in keeping NS_RCSID any longer? > > < NS_RCSID("@(#) $Header: /Volumes/DATEN0/develop/local/CVS/dev/ > naviserver/nsd/queue.c,v

Re: [naviserver-devel] Where is ChangeLog?

2010-03-06 Thread Stephen Deasey
On Sat, Mar 6, 2010 at 1:03 PM, Vasiljevic Zoran wrote: > Hi! > > After some (longer) absence (first things first) I am > now trying to catch-up with the Mercurial repository. > > First thing that I noticed after checking out the > repository was that ChangeLog file is missing. > Any idea why? Do

Re: [naviserver-devel] spooler not working on linux

2009-11-22 Thread Stephen Deasey
On Sun, Nov 22, 2009 at 3:26 AM, Vlad Seryakov wrote: > Once the server started, connect to nscp console and issue > > ns_logctl severity Debug(ns:driver) true > > now in the nsd.log there must be a lot of driver and spooler related > messages I think you should be able to do this at any time, n

Re: [naviserver-devel] spooler not working on linux

2009-11-22 Thread Stephen Deasey
On Sun, Nov 22, 2009 at 2:58 AM, John Buckman wrote: > > Perhaps the problem is how I built my naviserver on linux?  I simply ran > "autogen.sh" from the cvs tree, and I also tried it with > ./autogen.sh --enable-threads --enable-symbols  --with-tcl=/usr/local/lib The latest source is here, not

Re: [naviserver-devel] large memory usage when uploading

2009-11-19 Thread Stephen Deasey
On Thu, Nov 19, 2009 at 2:25 AM, John Buckman wrote: > I'm writing an app that accepts large file uploads, and trying to lower the > memory requirements. > > When I upload large files, at the point where the files are completely > uploaded, Naviserver consumes an equivalent amount of memory as t

Re: [naviserver-devel] Following symbolic directory links with NaviServer possible?

2009-09-22 Thread Stephen Deasey
On Tue, Sep 22, 2009 at 1:13 PM, Christian A Vogl wrote: > Yes, you're right, Stephen, thank you! > > Responsible's my own ns_returnforbidden, and I was misguided by the > different behaviour for files and directories. In detail, for maybe > helping other misguided half-blinds like me: > > I check

Re: [naviserver-devel] Following symbolic directory links with NaviServer possible?

2009-09-22 Thread Stephen Deasey
On Tue, Sep 22, 2009 at 11:23 AM, Christian A Vogl wrote: > Hi all! > > I'm wondering if it's a misconfiguration of mine or a feature of > NaviServer: > > whenever I want to symbolically link to a folder in "pages" directory, > I run into a 403 ("Forbidden") error. > > Symbolically linking to indi

[naviserver-devel] Migrating aol.com from proprietary platform (AOLserver) to Open Source

2009-07-13 Thread Stephen Deasey
Some pretty funny miss-statements in this history of AOLserver running aol.com: http://velocityconference.blip.tv/file/2286110/ But the punchline is that their shiny new apache/tomcat setup can barely manage half the 45 reqs/sec she derides the old AOLserver on 6 year old hardware achieving.

Re: [naviserver-devel] DB Connection Handles nsdbipg

2009-03-26 Thread Stephen Deasey
On Thu, Mar 26, 2009 at 3:09 PM, Ian Harding wrote: > Please ignore, it is a permission issue.  The user had not rights in > the schema, and since I used search_path, it didn't generate a > permission denied error, it just didn't look there and generated a > does not exist error. Great. FYI, t

Re: [naviserver-devel] DB Connection Handles nsdbipg

2009-03-25 Thread Stephen Deasey
On Wed, Mar 25, 2009 at 10:56 PM, Ian Harding wrote: > I am in a situation where I'd like to be able to set the search_path > on each page request.  In AOLServer I would have just made a db handle > getter function that would call ns_db gethandle, issue a quick SET > command, and pass the handle b

Re: [naviserver-devel] AOLserver/Naviserver in Tcl/Tk Google Summer of Code 2009 effort

2009-03-13 Thread Stephen Deasey
On Thu, Mar 12, 2009 at 11:06 PM, Tomasz Kosiak wrote: > Hi! > > Is there someone interested to be a mentor from AOLserver/Naviserver > community within Tcl GSoC 2009 effort? Do you have any well defined > project ideas which could be written down at http://wiki.tcl.tk/22182. > > As Matthew mentio

Re: [naviserver-devel] Mercurial help

2009-03-11 Thread Stephen Deasey
lines like: seryakov=Vlad Seryakov > Stephen Deasey wrote: >> On Wed, Mar 11, 2009 at 3:10 AM, Vlad Seryakov >> wrote: >>> imported all >>> >>> i skipped nsffmpeg, nsotcl, nstcp, i will not going to support themand >>> they will not compile,

Re: [naviserver-devel] Mercurial help

2009-03-11 Thread Stephen Deasey
On Wed, Mar 11, 2009 at 3:10 AM, Vlad Seryakov wrote: > imported all > > i skipped nsffmpeg, nsotcl, nstcp, i will not going to support themand > they will not compile, so no point keeping broken things. > > nsocaml still may be of interest even it is not compiling as it is now. Hmm, they all ju

Re: [naviserver-devel] Mercurial help

2009-03-10 Thread Stephen Deasey
On Tue, Mar 10, 2009 at 4:41 PM, Stephen Deasey wrote: > On Tue, Mar 10, 2009 at 4:14 PM, Vlad Seryakov > wrote: >> Stephen, >> >> Can you describe how to import module into hg on bitbucket, it keeps saying >> i am not authorized. > > > Log in as &#

Re: [naviserver-devel] Mercurial help

2009-03-10 Thread Stephen Deasey
On Tue, Mar 10, 2009 at 4:14 PM, Vlad Seryakov wrote: > Stephen, > > Can you describe how to import module into hg on bitbucket, it keeps saying i > am not authorized. Log in as 'naviserver' at bitbucket.org. Got to: http://bitbucket.org/repo/create Fill out the info. Once created, in t

Re: [naviserver-devel] commit/naviserver: Vlad Seryakov : Added call to nsproxy Tcl_FindExecutable(argv[0]); to keep Tcl 8.5 from crashing in thread related initialization.

2009-03-10 Thread Stephen Deasey
On Sun, Mar 8, 2009 at 4:13 PM, wrote: > 1 new changeset in naviserver: > > http://www.bitbucket.org/naviserver/naviserver/changeset/4b0584c5e64b/ > changeset:   r2184:4b0584c5e64b > user:        Vlad Seryakov > date:        2009-03-08 17:12:53 > summary:     Added call to nsproxy Tcl_FindExecuta

Re: [naviserver-devel] SLS

2009-03-02 Thread Stephen Deasey
On Mon, Mar 2, 2009 at 6:31 PM, Vlad Seryakov wrote: > I am working with persistent connections right now and want to track when the > socket is closed to cleanup some memory in > Tcl but it looks like there is no way to call cleanup Tcl proc on socket > close. I am thinking to extend ns_sls to

Re: [naviserver-devel] Buglets

2009-02-23 Thread Stephen Deasey
On Mon, Feb 23, 2009 at 10:12 PM, Ian Harding wrote: > Here are a couple things I've found during my migration from AOLServer > to Naviserver. > > 1.  The order of arguments to ns_register_filter is reversed.  I found > a discussion in the archives talking about this, but no conclusion. > It looks

Re: [naviserver-devel] Wiki Account

2009-02-19 Thread Stephen Deasey
On Thu, Feb 19, 2009 at 4:10 PM, Vlad Seryakov wrote: > Ian Harding wrote: >> Hi, >> >> Can I have an account on the wiki? >> >> Thanks! > > It was long time ago i used but now i always get this error even if i logged > in. In my opinion, this Wiki is no-use > > Sorry! We could not process your e

Re: [naviserver-devel] Session module

2009-02-16 Thread Stephen Deasey
On Sun, Feb 15, 2009 at 6:55 PM, Ian Harding wrote: > Hello, > > I am migrating to Naviserver from AOLServer mostly because of the > excellent nsdbi module. > > My existing code is depended on the nssession module > http://bas.scheffers.net/aolserver/ . It doesn't compile and run > unmodified un

Re: [naviserver-devel] Release

2009-02-09 Thread Stephen Deasey
On Tue, Feb 10, 2009 at 1:04 AM, Ian Harding wrote: > Ah, I think I found it.  Never mind my question. Hoping you found autogen.sh... (Only needed when checking out from the repository to bootstrap the automake stuff).

Re: [naviserver-devel] Config error

2009-02-05 Thread Stephen Deasey
On Thu, Feb 5, 2009 at 7:28 PM, Vasiljevic Zoran wrote: > > On 05.02.2009, at 20:30, Vlad Seryakov wrote: > >> simple macro like #define NS_STR(s) (s != NULL ? s : "") >> can be used instead of using ?: every time > > I buy that. I dunno, seems a bit gratuitous. You can't tell what the code doe

Re: [naviserver-devel] Config error

2009-02-05 Thread Stephen Deasey
On Thu, Feb 5, 2009 at 5:21 PM, Vasiljevic Zoran wrote: > > On 05.02.2009, at 18:14, Vlad Seryakov wrote: > >> The reason i think because Ns_DStringPrintf now uses OS's snprintf, >> before that it uses home-grown sprintf-like engine. Yeah, all uses of printf-like functions throughout the code ba

Re: [naviserver-devel] nsdbi 0.2 released

2009-02-04 Thread Stephen Deasey
On Wed, Feb 4, 2009 at 2:37 PM, Ian Harding wrote: > On Wed, Jun 11, 2008 at 3:43 AM, Stephen Deasey wrote: >> Changes and downloads: >> >> >> http://sourceforge.net/project/shownotes.php?release_id=605838&group_id=130646 >> > > I just discovered

Re: [naviserver-devel] commit/naviserver: groks: Manage lifetime of tcl synchronization objects without trampling memory -- -- The old scheme with both anonymous and named locks was makinf it difficul

2008-12-01 Thread Stephen Deasey
On Tue, Dec 2, 2008 at 3:33 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Stephen, > > Will it be too much to ask just to add all existing modules into > Mercurial, frankly i would like to do it but just my mind on something > else right now. At the same time i will start using Naviserver big time

Re: [naviserver-devel] commit/naviserver: groks: Manage lifetime of tcl synchronization objects without trampling memory -- -- The old scheme with both anonymous and named locks was makinf it difficul

2008-11-25 Thread Stephen Deasey
ive it a go if you feel like it. Ask if you need help. Otherwise, I'll just start converting them. > Stephen Deasey wrote: >> On Tue, Nov 25, 2008 at 1:28 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: >>> That means all development from now on goes to Mercurial, Right? &

Re: [naviserver-devel] commit/naviserver: groks: Manage lifetime of tcl synchronization objects without trampling memory -- -- The old scheme with both anonymous and named locks was makinf it difficul

2008-11-25 Thread Stephen Deasey
On Tue, Nov 25, 2008 at 1:28 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > That means all development from now on goes to Mercurial, Right? Well no one complained so I guess that means we've switched. I'll convert the other modules... ---

Re: [naviserver-devel] make memcheck / valgrind

2008-11-21 Thread Stephen Deasey
On 11/21/08, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > > No no. Errors are bad, there should be none. > > > > Stop teasing and show us them... :-) > > > Here you go: > http://www.kinetiqa.de/naviserver/memcheck.log.txt > > TCL: 8.4.19 sources This is weird, 8.4 also has errors? (you

Re: [naviserver-devel] nsdbpg

2008-11-21 Thread Stephen Deasey
On 11/21/08, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: > > I'm cursed. I never can compile a postgres driver for naviserver > from scratch. > > Here's my tale - maybe you can hint me to an obvious mistake: > > I compiled a Postgres 8.2.11 from source into > /opt/pgsql8.2.11 > > Then I chec

Re: [naviserver-devel] Chnaged my mind: switch to mercurial

2008-11-20 Thread Stephen Deasey
On 11/20/08, Vasiljevic Zoran <[EMAIL PROTECTED]> wrote: > > On 20.11.2008, at 20:33, Stephen Deasey wrote: > > > > > And clean your finger nails, and brush your teeth, and say your > > prayers... > > > Eh... brave new world... > > So yet anoth

Re: [naviserver-devel] Chnaged my mind: switch to mercurial

2008-11-20 Thread Stephen Deasey
On 11/20/08, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > vseryakov is my username, OK. I've given you write access. > looks oike adding openssh pub key does not work, it keeps saying SSH key is > not valid Perhaps during cut 'n paste a stray \n crept in? Worked for me. Anyway, you don't ne

Re: [naviserver-devel] make memcheck / valgrind

2008-11-20 Thread Stephen Deasey
On Thu, Nov 20, 2008 at 8:46 AM, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: >> > ==3781== ERROR SUMMARY: 18 errors from 9 contexts (suppressed: 106 from >> > 1) >> >> This is the important bit. There should be no errors. Scroll back up >> the log output and you should see details of the errors. U

Re: [naviserver-devel] Changed my mind: switch to mercurial

2008-11-19 Thread Stephen Deasey
On Wed, Nov 19, 2008 at 6:54 PM, Andrew Piskorski <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 05:48:11PM +, Stephen Deasey wrote: > >> http://www.bitbucket.org/naviserver/naviserver/overview/ > >> It's up to date for both branches of AOLserver, and

[naviserver-devel] Chnaged my mind: switch to mercurial

2008-11-19 Thread Stephen Deasey
On Wed, Aug 20, 2008 at 7:16 AM, Vasiljevic Zoran <[EMAIL PROTECTED]> wrote: > > On 20.08.2008, at 00:19, Stephen Deasey wrote: > >> I think it's probably better to stay with the familiar cvs. It doesn't >> scare anyone, SF handles everything, and patches are

Re: [naviserver-devel] make memcheck / valgrind

2008-11-19 Thread Stephen Deasey
On Wed, Nov 19, 2008 at 3:45 PM, Bernd Eidenschink <[EMAIL PROTECTED]> wrote: >> > But the results on my local box are... a little bit scary right now. >> >> ... scary is relative. So, how scary is your "scary", really? > > Scary for me, the ignorant :-) > > > ==3781== ERROR SUMMARY: 18 errors from

Re: [naviserver-devel] PHP streaming hangs

2008-11-08 Thread Stephen Deasey
On Sat, Nov 8, 2008 at 8:47 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: >> >> Do you need to buy into the full build process? Maybe you can just >> pull in the header and link against the library..? > > The problem with PHP that it can support only one SAPI implementation > and nsphp is not just e

Re: [naviserver-devel] naviserver ChangeLog,1.827,1.828

2008-11-08 Thread Stephen Deasey
On Sat, Nov 8, 2008 at 10:42 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/naviserver > In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26902 > > Modified Files: >ChangeLog > Log Message: > mark connection flags when last chunk is sent > > > Index: Chang

Re: [naviserver-devel] PHP streaming hangs

2008-11-08 Thread Stephen Deasey
On Sat, Nov 8, 2008 at 5:00 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Yes, keep-alive is the key, nshttp_test closes connection so it cannot > test this /* * php_ns_sapi_send_headers() flushes the headers to the client. * Called before real content is sent by PHP. */ static int php_ns_sap

Re: [naviserver-devel] PHP streaming hangs

2008-11-07 Thread Stephen Deasey
On Sat, Nov 8, 2008 at 3:38 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > > Added, runs fine but that the thing, it hangs in firefox, not in the test > OK, so there's a difference. Maybe keepalive -- you mentioned what looked like responses garbled together? An HTTP 1.1 request will force keepa

Re: [naviserver-devel] PHP streaming hangs

2008-11-07 Thread Stephen Deasey
On Fri, Nov 7, 2008 at 10:24 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I want to find the problem and then will put test for future checks No, you write the test to help find the bug. > It is funny, using telnet and submitting same headers never triggers > this, but when using firefox, af

Re: [naviserver-devel] PHP streaming hangs

2008-11-07 Thread Stephen Deasey
On Fri, Nov 7, 2008 at 9:23 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > > This is the simple PHP page that triggers hanging, when attached to the > nsd, backtrace on all thread show they all are in the condwait or poll > wait, seems like sent/expected bytes miscalculation. > > > $test = @$_COOK

Re: [naviserver-devel] naviserver/nsd driver.c,1.119,1.120

2008-11-07 Thread Stephen Deasey
On Wed, Oct 22, 2008 at 10:35 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: static ssize_t Recv(Ns_Sock *sock, struct iovec *bufs, int nbufs, Ns_Time *timeoutPtr, int flags) { static const char request[] = "GET /whateva HTTP/1.0\r\n\r\n"; size_t requestLen = siz

Re: [naviserver-devel] modules/nsssl nsssl.c,1.6,1.7

2008-11-07 Thread Stephen Deasey
On Wed, Oct 22, 2008 at 8:58 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Stephen Deasey wrote: >> On Wed, Oct 22, 2008 at 9:03 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: >>> I tried to use Ns_SockSendBufs() but it sends data directly to socket >>> wher

Re: [naviserver-devel] naviserver/tcl fastpath.tcl,1.5,1.6

2008-11-07 Thread Stephen Deasey
On Fri, Nov 7, 2008 at 3:12 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > + # If address set to 0.0.0.0 in nssock to listen on > + # all interfaces we may try to use Host: header to > + # return proper urls > + # > + > + if { $loc == "http://0.0.0.0"; } { > + set host [n

Re: [naviserver-devel] Relocating ns_atclose calls

2008-11-07 Thread Stephen Deasey
On Fri, Nov 7, 2008 at 4:32 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > In most cases ... it will work as before because > atclose blocks and socket is not yet returned to driver driver.c:NsSockClose() does return the Sock to the driver thread, and it does not block. > ... if i need to use

Re: [naviserver-devel] nsphp and other broken things

2008-10-29 Thread Stephen Deasey
On Tue, Oct 28, 2008 at 5:02 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > After 2008-09-11, nsphp stopped working, even with the latest update to > non-obsolete functions, it looks like something in the core flow, > especially streaming part doe snot work properly. > > I tried all versions and th

Re: [naviserver-devel] naviserver/nsd driver.c,1.119,1.120

2008-10-22 Thread Stephen Deasey
On Wed, Oct 22, 2008 at 8:36 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: >> >> static ssize_t >> Recv(Ns_Sock *sock, struct iovec *bufs, int nbufs, Ns_Time >> *timeoutPtr, int flags) >> { >> static const char request[] = "GET /whateva HTTP/1.0\r\n\r\n"; >> size_t requestLen = sizeof(reques

Re: [naviserver-devel] modules/nsssl nsssl.c,1.6,1.7

2008-10-22 Thread Stephen Deasey
On Wed, Oct 22, 2008 at 9:03 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I tried to use Ns_SockSendBufs() but it sends data directly to socket > where i need to send via driver's send proc. Just pass your Send() proc directly, and delete SendBufs(): static ssize_t SendFile(Ns_Sock *sock, Ns

Re: [naviserver-devel] modules/nsssl nsssl.c,1.6,1.7

2008-10-22 Thread Stephen Deasey
> Index: nsssl.c > === > RCS file: /cvsroot/naviserver/modules/nsssl/nsssl.c,v > retrieving revision 1.6 > retrieving revision 1.7 > diff -C2 -d -r1.6 -r1.7 > *** nsssl.c 22 Oct 2008 02:14:24 - 1.6 > --- nsssl.c 22 Oct

Re: [naviserver-devel] modules/nsssl nsssl.c,1.6,1.7

2008-10-22 Thread Stephen Deasey
On Wed, Oct 22, 2008 at 4:23 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/modules/nsssl > In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22913/modules/nsssl > > Modified Files: >nsssl.c > Log Message: > new accept status, SSL driver works now > > > Ind

Re: [naviserver-devel] naviserver/nsd driver.c,1.119,1.120

2008-10-22 Thread Stephen Deasey
On Wed, Oct 22, 2008 at 4:23 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/naviserver/nsd > In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22913/nsd > > Modified Files: >driver.c > Log Message: > new accept status, SSL driver works now > > > Index: driv

Re: [naviserver-devel] naviserver ChangeLog,1.820,1.821

2008-10-22 Thread Stephen Deasey
On Wed, Oct 22, 2008 at 3:14 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/naviserver > In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17830 > > Modified Files: >ChangeLog > Log Message: > nsssl module ported, sock context and driver context exposed > >

Re: [naviserver-devel] naviserver/include nsthread.h,1.42,1.43

2008-10-05 Thread Stephen Deasey
I think we can just remove the O_LARGEFILE usage from log.c (only place it's used). _FILE_OFFSET_BITS handles this now. On Sun, Oct 5, 2008 at 6:03 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/naviserver/include > In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-

Re: [naviserver-devel] naviserver ChangeLog,1.787,1.788

2008-09-11 Thread Stephen Deasey
On Thu, Sep 11, 2008 at 10:53 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > will do, it may take a while > no problem - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux bas

Re: [naviserver-devel] naviserver ChangeLog,1.787,1.788

2008-08-28 Thread Stephen Deasey
On Fri, Aug 29, 2008 at 2:12 AM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: >>> +* tests/http_byteranges.test: Add a couple of tests for ranges on >>> +larger files to exercise the file descriptor path rather than the >>> +in memory mmap or cache path. Unfortunately, this actually >>> +

Re: [naviserver-devel] Bug in fastpath cache causes info leak

2008-08-28 Thread Stephen Deasey
On Thu, Aug 28, 2008 at 9:52 PM, Vasiljevic Zoran <[EMAIL PROTECTED]> wrote: > > On 21.08.2008, at 21:06, Stephen Deasey wrote: > >> You used to have to manually edit the makefile to disable zippy. Is >> this still the case? >> >> Perhaps the Tcl default sho

Re: [naviserver-devel] Last build, cache test failure

2008-08-28 Thread Stephen Deasey
On Tue, Aug 26, 2008 at 11:36 PM, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > I spent a lot of time and still cannot resolve the problem with latest > version ns_cache test failure. > > One problem i noticed with latest Tcl 8.5.4, in crashes nsd in thread > test in 64bit and hangs forever in 32bit L

  1   2   3   4   5   6   7   >