Re: [AOLSERVER] Segmentation fault

2002-01-18 Thread Jeff Rogers
On Thu, 17 Jan 2002 13:15:51 -0600, Rob Mayoff [EMAIL PROTECTED] wrote: +-- On Jan 17, Daniel P. Stasinski said: My second suggestion was meant as humor. The reason that your server crashes is because your code is flawed. Obviously his infinite-recursion example will always fail in

Re: [AOLSERVER] metakit with aolserver

2002-04-01 Thread Jeff Rogers
On Mon, 1 Apr 2002 22:35:41 +0200, Jean-Claude Wippler [EMAIL PROTECTED] wrote: The segfault is bad of course, but there may be multiple issues here. Note that MK defines a mk::set command. So please change from: namespace eval ::mk {set n [namespace current]} to: namespace eval ::mk

Re: [AOLSERVER] problem with Linux telnet and nscp

2002-04-03 Thread Jeff Rogers
On Wed, 3 Apr 2002 10:12:22 -0800, atfrost [EMAIL PROTECTED] wrote: [-nscp:1-] Warning: nscp: unsupported telnet IAC code 252 received from client This is the WONT command, I believe? That's correct. I haven't dug through the code very deeply, but it bears mentioning that I *can* connect to

[AOLSERVER] Fatal: nssock: select() failed: Bad file descriptor

2003-01-03 Thread Jeff Rogers
I'm getting this rather annoying error quite reproducably. I'm running on linux, aolserver 3.5.2 using nsvhr+nsunix (3_5 cvs tags). I suspect the error has something to do with http keepalives, even though nsvhr should be turning those off. The problem never comes up when I'm browsing my site

[AOLSERVER] aolserver bug

2006-01-12 Thread Jeff Rogers
I found a bug in aolserver 4.0.10 (and previous 4.x versions, not sure about earlier) that causes the server to lock up. I'm fairly certain I understand the cause, and my fix appears to work although I'm not sure it is the best approach. The bug: when benchmarking the server with a program like

Re: [AOLSERVER] aolserver bug

2006-01-13 Thread Jeff Rogers
You could try my patch; I'm pretty sure it won't have any ill effects (perhaps marginally more cpu use due to a few extra times through the driver loop) but that's hardly any worse than your occasional lockups. Another thing to look at is is you can get a core dump (kill -QUIT) or debugger

Re: [AOLSERVER] Application packages

2006-02-20 Thread Jeff Rogers
On Mon, 20 Feb 2006 14:52:12 +, Bas Scheffers [EMAIL PROTECTED] wrote: The goal would be to have simple deployable application modules, quite like a WAR file in J2EE. Let's codename it AOLserver Application Package, or AAP for short. (yes, that is Dutch for monkey) This would give the

Re: [AOLSERVER] perl (nsperl? DBD::AOLserver? etc.)

2006-05-23 Thread Jeff Rogers
Dossy Shiobara wrote: On 2006.05.22, 'Jesus' Jeff Rogers [EMAIL PROTECTED] wrote: If there was a DBD interface to the Ns_Db functions that would make aolserver a *schweet* environment for perl apps since there is no database pooling on apache. Oh, interesting. This is definitely going

Re: [AOLSERVER] AOLserver 4.0(.10) memory usage

2006-06-02 Thread Jeff Rogers
I think one difference is in the tcl version itself; the latest versions use a fast multithreaded allocator that allocates on average slightly more than double the amount requestes, while earlier versions may have been more frugal. You can cut your memory usage by a third or more by

Re: [AOLSERVER] AOLserver 4.0(.10) memory usage

2006-06-02 Thread Jeff Rogers
Guan Yang wrote: Thanks, What values would you suggest for NBUCKETS and MAXALLOC? And looking at tclThreadAlloc.c, I'm not quite sure how to make the spacing closer. Guan The original list is { 16, 1024, 512, NULL}, { 32, 512, 256, NULL}, { 64, 256, 128, NULL}, {

Re: [AOLSERVER] question about libnsd loading in tclsh

2006-08-15 Thread Jeff Rogers
John Buckman wrote: What I'm trying to do is run command-line tcl commands that would access my berkeleydb database while aolserver is still running, and if two separate processes are writing the same db file, it gets corrupted. My understanding (which may be entirely wrong) is that it

Re: [AOLSERVER] AOLserver's documentation woes and its future

2006-09-06 Thread Jeff Rogers
Dossy Shiobara wrote: It's about why we end up in situations where we even feel a debugger is necessary. I used to use debuggers much more than I do currently, (probably in large part because I used to do more C coding), but even though I do 99% of my debugging without a debugger, that

Re: [AOLSERVER] AOLserver's documentation woes and its future

2006-09-06 Thread Jeff Rogers
Dossy Shiobara wrote: On 2006.09.06, Rick Gutleber [EMAIL PROTECTED] wrote: As much as it would please, however, me to be able to step through Tcl code, I think Dossy is correct. You really can live without one. I think the point here is, if you force yourself to live without one, it

Re: [AOLSERVER] tcmalloc

2006-12-13 Thread Jeff Rogers
Nathan Folkman wrote: What you need to do is build a version of Tcl that has support for threads, but does not use the Zippy allocator. I seem to remember there being issues with core Tcl that did not allow you to do this easily, but you'd have to double check. Maybe try something like

Re: [AOLSERVER] tdom leak fix

2007-02-28 Thread Jeff Rogers
tdom can do automatic deleting, but it has some strict limitations. If you pass a variable name to dom parse, as in dom parse $xml doc foreach n [$doc selectNodes ...] ... then the dom object will automatically get cleaned up when the variable doc is unset, as on return from a proc. It

Re: [AOLSERVER] tdom leak fix

2007-02-28 Thread Jeff Rogers
Nick Miller wrote: Heya, I have added: foreach lostdom [info commands domDoc0*] { $lostdom delete } As you say though, best to make sure you catch them when your dealing with them and explicitly delete them. Thanks Nick Having run into this same problem before I did something similar,

Re: [AOLSERVER] tdom leak fix

2007-02-28 Thread Jeff Rogers
Nathan Folkman wrote: Don't you open yourself up for a race condition if that code is in a scheduled proc? If it was an aolserver scheduled proc then yes, but in my application it was running in an after rescheduling loop within tclhttpd so there was no risk of pre-emption; but the memory

Re: [AOLSERVER] ns_zlib compress

2007-04-18 Thread Jeff Rogers
Juan José del Río wrote: aT wrote: I have ns_param gzip on , but do i still need to set some headers ? I don't know. How do i know its gzipping anything ? telnet www.yourwebserver.com 80 And send a GET request. That won't invoke compression unless you include the appropriate

Re: [AOLSERVER] nssession 1.0RC1

2007-06-19 Thread Jeff Rogers
Bas Scheffers wrote: Hi Ian, Good to hear someone is using it! I guess I didn't document it very well. You need to pass it a valid HTTP time string. The easy way to get it to never expire is to pass the value of: [ns_httptime 20] That tells it to expire Wed, 18 May 2033 03:33:20

Re: [AOLSERVER] ns_conn outputheaders

2007-07-07 Thread Jeff Rogers
Ian Harding wrote: That makes sense, a lot of the headers can't be generated until the body because they are not known, things like Content-Length. I was just hoping to be able to get a nice standard, if incomplete, set of headers that I could send back before streaming. It looks like I can't.

Re: [AOLSERVER] Performance problems with large installation

2007-07-18 Thread Jeff Rogers
Andrew Piskorski wrote: To reduce your RAM usage, you would definitely want to investigate ttrace, included in the Tcl Threads Extension. However, you don't seem to be running out memory, so this is unlikely to be that big a help in your case. I have had very little success in getting ttrace

Re: [AOLSERVER] configured minthreads, maxthreads doesnt show up with [ns_server threads] command

2007-07-30 Thread Jeff Rogers
Nathan Folkman wrote: Those parameters moved and are now controlled via the ns_pools Tcl command: This issue keeps coming up. How hard would it be to add in (for the next point release) compatibility code in init.tcl to parse the old-style parameters? -J -- AOLserver -

Re: [AOLSERVER] aolserver focus

2007-08-07 Thread Jeff Rogers
Daniël Mantione wrote: I think a few reasons contribute to the low popularity of AOLserver * It interoperates badly with Apache. Both need port 80. While solutions exits, none is ideal, and none come with Batteries included. Many people (most) cannot rely 100% on AOLserver, despite

Re: [AOLSERVER] aolserver focus

2007-08-07 Thread Jeff Rogers
Daniël Mantione wrote: I think this may be more of a marketing issue than a technical one. What does apache do that aolserver doesn't? If have had very few situations that could rely 100% on AOLserver. Be it PHP scripts (yes, I know you can install PHP in AOLserver), multi-user requirements

Re: [AOLSERVER] aolserver focus

2007-08-07 Thread Jeff Rogers
Tom Jackson wrote: None of the issues listed really have a solution. The truth is that if you are doing mass hosting, you should use Apache, the memory footprint is just too great at some point with AOLserver because you have to load each server at startup. At the very least all code for all

Re: [AOLSERVER] aolserver focus

2007-08-07 Thread Jeff Rogers
Over in naviserver Vlad (I think) did a bunch of work on vmalloc which tries to actually release the memory back to the system (rather than just the shared pool) on thread exit to keep the process size smaller still. I don't recall what the ultimate outcome of it was however. -J Nathan

Re: [AOLSERVER] aolserver focus

2007-08-07 Thread Jeff Rogers
Daniël Mantione wrote: I'm not to happy to call it a marketing issue, because this suggests that if you would have a big enough advertising campain, you can make AOLserver win from Apache. This is not the case. Software lock-in is very difficult to undo (ever try to get someone to change

Re: [AOLSERVER] aolserver focus

2007-08-08 Thread Jeff Rogers
Dossy Shiobara wrote: http://panoptic.com/wiki/aolserver/AOLserver_Cookbook#Server-side_Includes I'm only half-joking here--that code I threw up on the wiki was written and tested very, very briefly as a proof-of-concept and only handles the include SSI tag ... it uses a registered ADP tag for

Re: [AOLSERVER] aolserver focus

2007-08-08 Thread Jeff Rogers
Daniël Mantione wrote: Again, a practical situation: How many PHP packages support such headers? (Even OpenACS doesn't support them, so you would have to fix OpenACS too.) Can you (socially) convince those users to rewrite the PHP apps for you to use your OpenACS? As a practical solution, if

Re: [AOLSERVER] aolserver focus

2007-08-09 Thread Jeff Rogers
Dossy Shiobara wrote: On 2007.08.09, Jim Davidson [EMAIL PROTECTED] wrote: After reading through all the responses to my aolserver focus post, it seems to me Thorpe's comments below are the most realistic and actionable, i.e., it's the documentation / getting started stuff that's insufficient.

[AOLSERVER] binary-clean exec

2007-08-29 Thread Jeff Rogers
This is more of a tcl question than aolserver but its coming up in my server so I'll start here. Is there a way to make exec not do translations on the returned data? Here's my exact situation. I have a proc to handle php files by spawning the standalone php program (this it low-volume so

Re: [AOLSERVER] Working with Chinese characters in Tcl/AOLserver

2007-09-05 Thread Jeff Rogers
Janine Sisk wrote: I did find that it does not seem to be possible to open a pipe for both reading and writing. I tried it and was able to write data to the pipe (simulating stdin) but my read from the same channel just hung. Reading from the channel does work if it is opened only for

Re: [AOLSERVER] Working with Chinese characters in Tcl/AOLserver

2007-09-05 Thread Jeff Rogers
Dossy Shiobara wrote: I can't, for example, grab the return value of the command directly from the exec; if I do, it's mangled. I don't think you can tell [exec] what encoding the I/O will be. Perhaps you could/should see if there's a TIP for [exec -encoding $name $command] already ...

Re: [AOLSERVER] Working with Chinese characters in Tcl/AOLserver

2007-09-05 Thread Jeff Rogers
Janine Sisk wrote: I'm working with a site that stores it's content in big5, and is run through a conversion program to create a gb2312 version for those who prefer the simplified characters. I know these are the charsets being used; I've seen the config files for the converter.

Re: [AOLSERVER] Working with Chinese characters in Tcl/AOLserver

2007-09-05 Thread Jeff Rogers
Dossy Shiobara wrote: On 2007.09.05, Jeff Rogers [EMAIL PROTECTED] wrote: [...] if your inferior process waits for EOF before writing anything then it will get stuck because there is no way to half-close the pipe. If the inferior process writes as soon as it has data available

Re: [AOLSERVER] Logging

2007-09-18 Thread Jeff Rogers
Ian Harding wrote: Is there any sane way to get combined logs from more than one instance of AOLserver? I would like to have the entries interleaved with an identifier of which instance they came from. From what I have read it seems impossible. These instances are on different physical

Re: [AOLSERVER] Logging

2007-09-18 Thread Jeff Rogers
Jeff Rogers wrote: One way to address this issue with apache is mod_log_spread which sends log messages over the spread group communications toolkit[1]. It wouldn't be difficult to set up something similar for aolserver. I don't know offhand if the tcl spread library is threadsafe (I

Re: [AOLSERVER] New modules on aolserver.am.net; also we are looking to hire a full-time AOLserver programmer

2007-09-24 Thread Jeff Rogers
Alex Hisen wrote: We've just finished a complete overhaul of http:// http://aolserver.am.net/ aolserver.am.net/ and our entire company web site. A much better look, better navigation and better organization of content. We've also taken the opportunity to release some new C and Tcl modules: *

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-09-27 Thread Jeff Rogers
Tom Jackson wrote: I was looking at lighttpd performance (at http://trac.lighttpd.net/trac/wiki/Docs%3APerformance ) Considering how well AOLserver stands up to lighttpd, my question was why does lighttpd do better? I was wondering if it had something to do with how aolserver does its

Re: [AOLSERVER] code for 404 pattern (aka static cache)

2007-10-01 Thread Jeff Rogers
John Buckman wrote: Bas Scheffers was kind to share his 404-pattern code with me (ie, a custom 404 handler to enable static caching of frequently requested files), which I used to write my own. It's not rocket science, but since I asked the question, I thought I'd share my code, in case

Re: [AOLSERVER] aolserver vs lighthttpd, benchmarks

2007-10-01 Thread Jeff Rogers
Andrew Piskorski wrote: What's the actual problem with Gustaf's code? You've obviously read and thought about it, Tom (which I have not), but so far I see a lot of theoretical hand wavy complaints from you, but little solid criticism of the actual code. I also think the code belongs on a

Re: [AOLSERVER] Ns_RegisterAtReady, NsRunAtReadyProcs

2007-10-19 Thread Jeff Rogers
Dossy Shiobara wrote: On 2007.10.13, Tom Jackson [EMAIL PROTECTED] wrote: This all looks great, except for the fact that the NsRunAtReadyProcs proc is never called. In 4.5, that appears to be the case. In 4.0, it's called from nsd/queue.c. I'd need to look more closely at the code to see

Re: [AOLSERVER] Ns_RegisterAtReady, NsRunAtReadyProcs

2007-10-20 Thread Jeff Rogers
Tom Jackson wrote: Now how to get ab stuck and give up? I use a regular browser (mozilla), and I try to load the same image, I hit reload like 5-7 times or so. The number of reloads is larger than the number of maxconns per thread. There is only one thread working. What may be happening is

Re: [AOLSERVER] nsdci query

2007-10-22 Thread Jeff Rogers
Dossy Shiobara wrote: What I'm struggling with though is if I store an image file to the sob with sob.copy and then try and retrieve it later with nsob.get, it only returns the first 4 or 10 bytes of the file. SOB isn't encoding-aware and is actually really naive--it doesn't handle binary data

Re: [AOLSERVER] nsdci query

2007-10-23 Thread Jeff Rogers
Michael Andrews wrote: I think the ns_http bug was fixed in the HEAD by Nate. *ashamed* Yeah, the code I'm looking at is 4.0.8, pretty old. I probably just need to upgrade and this will work better. -J -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply

[AOLSERVER] openid

2008-02-06 Thread Jeff Rogers
Greetings all, Has anyone implemented an openid consumer for aolserver? (or BBAuth, etc.) -J -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the

Re: [AOLSERVER] openid

2008-02-06 Thread Jeff Rogers
like to help with docs, I'd be happy to send you a copy. -- Dossy --Original Message-- From: Jeff Rogers Sender: AOLserver Discussion To: AOLSERVER@LISTSERV.AOL.COM ReplyTo: AOLserver Discussion Sent: Feb 6, 2008 6:38 PM Subject: [AOLSERVER] openid Greetings all, Has anyone implemented

[AOLSERVER] nssqlite3 troubles

2008-02-07 Thread Jeff Rogers
Hi all, I'm using the nssqlite3 driver for my latest experiment and found a serious limitation in it: you cannot execute a select statement that returns no rows. (at least not with select or 0or1row; you could probably hack it with exec but that would be annoying and is supposed to be

Re: [AOLSERVER] nssqlite3 troubles

2008-02-07 Thread Jeff Rogers
Stephen Deasey wrote: sqlite3_stmt *st; sqlite3_prepare_v2(handle, sql, length, st, tail) if (sqlite3_column_count(st) == 0) { /* DML */ } Ah, that's much cleaner! I guess late at night I overlooked the sqlite3_column* set of functions. Using sqlite3_column_name

Re: [AOLSERVER] nssqlite3 troubles

2008-02-07 Thread Jeff Rogers
[EMAIL PROTECTED] wrote: The select proc is only in the pg driver in order to support some ancient AOLserver 2 functionality that I doubt anyone else uses any more. Then should it be removed? (in someone's copious free time...) It shouldn't appear in your sqllite3 driver, IMO. Could you

Re: [AOLSERVER] Google Summer of Code

2008-02-29 Thread Jeff Rogers
Matthew M. Burke wrote: I am convinced we could attract some students, but I don't want to commit unless there's at least a little more positive response. Another possibility is that I know Clif Flynt, Jeff Hobbs and other Tcl folks are putting together an application. So perhaps the better

[AOLSERVER] authuser

2008-03-05 Thread Jeff Rogers
The authUser field of a conn is logged by nslog and can be read with ns_conn authuser but is only set in the driver from basic authentication. Does anyone (other than me) think there would be value in allowing the conn username to be updated, i.e., by a new 'ns_conn setauthuser' subommand?

Re: [AOLSERVER] using openacs db api

2008-04-02 Thread Jeff Rogers
Xavier Bourguignon wrote: Hi All, Does anybody know what is required to use OpenAcs DB API for accessing Postgres DB within aolserver? OpenACS is a complete integrated platform for creating web communities; I suspect that the DB api builds on the ACS core api and as such it is not a

Re: [AOLSERVER] Minor facelift to aolserver.com

2008-04-08 Thread Jeff Rogers
Juan José del Río (Simple Option) wrote: Yes, but: - But Beta seems to attract so many people to certain technologies/software... Even if some people don't like new people, they are somehow needed. We'll die someday. We need someone to take over our tasks. - We can say that it's 1% beta. Sure

Re: [AOLSERVER] Tcl rounding question

2008-05-03 Thread Jeff Rogers
William Scott Jordan wrote: Hey all! This is really more of a tcl question, but I'm hoping that someone on the list might have an explanation. Why does [format %.2f 18.005] round down to 18.00 and [format %.2f 1.415] round up to 1.42? Any guesses? Am I missing something obvious here?

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-05 Thread Jeff Rogers
Dossy Shiobara wrote: Back in Feburary 2005, Dan Chak at MIT said something to me that I just haven't had the motivation to pursue. However, I really would like to hear what folks think of his statement: What AOLServer community needs is a bunch of fun, free applications for

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-05 Thread Jeff Rogers
Tom Jackson wrote: Wait, I thought mashups were simply http requests from javascript to update parts of a web page. You return either javascript, html or an xml document, which is probably a worthless option. Maybe I got this wrong, but AOLserver should be able to step into a mashup

[AOLSERVER] bookmooch on reddit

2008-07-31 Thread Jeff Rogers
Just noticed that bookmooch is #6 on the reddit homepage. I seem to recall that bookmooch was running aolserver backed by bdb on just one or two servers - is that still the case? What I was wondering more of course is if there was any notable traffic spike from the reddit mention and if

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Jeff Rogers
While I'd agree this is a bug in fastpath, the real problem is that fastpath is being used at all in this case. The intent of fastpath is to avoid reading a seldom-changed file from disk. It happens to be used in ns_returnfile since that is the normal use case. On unix the fastpath cache is

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Jeff Rogers
John Caruso wrote: I'd agree that that's the intent, but the caching is hidden within ns_returnfile and it's not clear at all from the user's perspective that this alligator is lurking in the swamp. Using ns_returnfile in this way may not be the best approach in any particular situation, but

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Jeff Rogers
Tom Jackson wrote: Think about the case where multiple logical files are actually the same physical file. Using the name would result in caching the same object under different names. This is a much more likely situation than this so called bug. Huh, hard links - I sometimes forget about

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Jeff Rogers
russell muetzelfeldt wrote: On 19/08/2008, at 9:37 AM, Tom Jackson wrote: On Mon, 2008-08-18 at 15:38 -0700, Jeff Rogers wrote: While I'd agree this is a bug in fastpath, the real problem is that fastpath is being used at all in this case. I don't think it is a bug in fastpath. fastpath

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Jeff Rogers
Tom Jackson wrote: No, because each file has a different inode. The bug requires that you create and destroy one file and create another one within one second (so they have the same timestamp) also required that the same inode is used and that the file is the same exact size. But beyond that,

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-19 Thread Jeff Rogers
Tom Jackson wrote: If you want to avoid use of fastpath, just set the configuration lower than your dynamic content: # # Fastpath # ns_section ns/server/${server}/fastpath ns_param cache[set cache 10] ;# max entries ?? ns_param cachemaxsize [set cachemaxsize [expr 5 *

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-19 Thread Jeff Rogers
John Caruso wrote: Think of it as a if-modified-since or if-none-match conditional GET. Actually that's not analogous, ... I didn't mean to say it was exactly the same, just similar in that given a particular system that makes particular assumptions it is possible to construct a

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Jeff Rogers
John Caruso wrote: BTW, Jeff, the scenario you'd outlined that you thought would trip this up...: 13:50:21 - create file 13:50:21 - serve file (gets cached) 13:50:21 - delete file 13:50:21 - create file again (reuses inode) ... time passes ... 13:55:11 - serve file

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Jeff Rogers
Jim Davidson wrote: BTW: Which OS is re-using inodes so quickly? I can't get my Mac OS/X laptop to do that -- figured the inode re-use/prediction thing was plugged years ago, e.g., when fsirand was introduced for scrambling NFS vnodes. Linux. This tcl page: set fn /tmp/tmpfile[expr

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Jeff Rogers
John Caruso wrote: No, you're still not understanding how the patch works. Ok, I'll admit that I misread it at first, but you're also not understanding why I'm saying why it will still break. I'm surprised you're taking such an all-or-nothing view now, I don't think I'm taking an

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Jeff Rogers
Derek wrote: how is this thread still alive. I think this bikeshed should be painted blue. See http://www.bikeshed.com/ if you don't understand this. -J -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Jeff Rogers
Dossy Shiobara wrote: However, to let it continue to spin over and over is unproductive. I'd love to hear other solutions other than configurabe cache key strategies or a time-based delay caching strategy, but the time to debate whether this is a defect or not is officially over: it is a

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Jeff Rogers
Titi Alailima wrote: what you were looking for. Even with the mtime fix there's no guarantee that systems which muck around with mtime (such as tar) won't cause separate files to collide. For a contrived example: I think the best you can do is to use ctime instead of mtime, or maybe btime

Re: [AOLSERVER] Help to install AOL server

2008-10-21 Thread Jeff Rogers
Thibault Fouache wrote: Hi everyone ! I've got a problem during the Aol server installation at the gmake's step. Here you can find the picture of the error. Can somebody help me please? Thanks in advance, Thibault This is a known issue building aolserver against tcl8.5. Grab the HEAD

Re: [AOLSERVER] Virtual hosting

2009-02-06 Thread Jeff Rogers
You can absolutely run multiple named vhosts off a single IP with no problem. It works out of the box from I think the first release of 4.x. I think the sample config shows all you need to know about vhosting but if not I'd be happy to help come up with a better concise example. the only

Re: [AOLSERVER] AOL + SQLite+nsproxy question

2009-02-28 Thread Jeff Rogers
Alexey Pechnikov wrote: I did try to use nssqlite module but get segmentation fault errors. In AOL server 4.0.10 # tail -f /var/log/aolserver4/offline.sid.mobigroup.ru.log “db_foreach “select value from session” { alloc: invalid block: 0xb4cf5378: 78 b4 20 AOL server 4.5 doesn't work with

Re: [AOLSERVER] ns_adp_parse issue

2009-07-07 Thread Jeff Rogers
Francesco Petrarch wrote: Ok, I got this, this time I really do, and it should be easily replicated by anyone. I have this filter: ns_register_filter preauth GET /*.html decode_url ns_register_filter preauth POST /*.html decode_url ns_register_filter preauth HEAD /*.html decode_url proc

Re: [AOLSERVER] ns_adp_parse issue

2009-07-07 Thread Jeff Rogers
Jeff Rogers wrote: proc decode_url { why } { set page [ns_adp_parse -file /www/website/template.adp] ns_return 200 text/html $page ns_adp_exception state ns_log notice adp exception state is $state catch {ns_adp_return} return filter_return } Whoops, this won't

Re: [AOLSERVER] AOLServer 4.x blindly reporting X-Forwarded-For value in logs

2009-08-18 Thread Jeff Rogers
There is no built-in setting to log or not log forwarded headers. It's not difficult to change, but it requires a little programming. If you are comfortable with C, you can edit nslog/nslog.c and change the behaviour with X-Forwarded-For (it's at nslog.c:272 in my copy). You could disable

Re: [AOLSERVER] is it necessary

2009-10-26 Thread Jeff Rogers
nitin chandra wrote: Thank you Everyone, After a lot of attempts i was successful in installing the AoLserver but not PyWX or for that matter any thing which will integrate with Python. Support regarding PyWX on AoL is non-existent, and key people have stopped working / supporting this combo

Re: [AOLSERVER] AOLserver templating options

2009-10-26 Thread Jeff Rogers
Hossein Sharifi wrote: Hey all, What's the current state of templating systems in AOLserver? I've found two: 1) ATS: Is it well-maintained, and can it be easily used outside of an OpenACS installation? 2) http://junom.com/document/twt/view/www/ - it seems to be actively maintained

Re: [AOLSERVER] upload progress

2009-11-25 Thread Jeff Rogers
It looks like the pre-queue filters are run after the message body has been read, but before it is passed off to the Conn thread, so no help there. However it looks like it would not be hard to add in a new callback to the middle of the read loop, tho it's debatable if that's a good idea or

Re: [AOLSERVER] upload progress

2009-12-01 Thread Jeff Rogers
one conn can be in a thread at a time and that it always releases the interp when it leaves the thread. -J -Jim On Nov 25, 2009, at 5:46 PM, Jeff Rogers wrote: It looks like the pre-queue filters are run after the message body has been read, but before it is passed off to the Conn thread

Re: [AOLSERVER] upload progress

2010-01-22 Thread Jeff Rogers
The YUI upload control looks like a good place to start for the flash client-upload feature. I haven't looked into it too deeply tho, so I don't know what the server side looks like. YUI Uploader widget: http://developer.yahoo.com/yui/uploader/ Other that that, I was pondering the plain

Re: [AOLSERVER] AOLserver on GitHub

2010-04-09 Thread Jeff Rogers
Dossy Shiobara wrote: Hi, So, I've finally gone crazy and have started pushing the contents of the CVS repository from SourceForge up to GitHub: http://aolserver.github.com/ http://github.com/aolserver I think in general this is a good thing. In fact, I was just thinking about

Re: [AOLSERVER] AOLserver on GitHub

2010-04-09 Thread Jeff Rogers
Dossy Shiobara wrote: Hi, So, I've finally gone crazy If you have any positive comments and/or suggestions, don't hesitate to get in touch with me: I'd love to hear what you think. AOLserver's not dead, yet. ;-) Also while you're at it, is the chat logger still running? And would

Re: [AOLSERVER] WebSockets in AOLserver: get the full request body

2010-11-01 Thread Jeff Rogers
w...@dcon.at wrote: Hi! So it's simply not possible to retrieve the 8 bytes after the header? That's a pitty, because that would be all I need for implementing the WebSocket protocol and with ns_chan one could feed data to a lot of clients. wiwo I'm pretty sure it's not possible to

Re: [AOLSERVER] WebSockets in AOLserver: get the full request body

2010-11-01 Thread Jeff Rogers
It looks like my previous answer was, at best, partially right. It looks lke [ns_conn channel] does in fact give you a read/write channel. The effect of the missing content-length header is to discard any data that was read past the headers. Attached is a patch (readahead.patch) to

[AOLSERVER] How about fossil? (Was: Git on SourceForge)

2010-11-17 Thread Jeff Rogers
Jade Rubick wrote: Unless we hear otherwise, so far I think we can summarize this thread as: Tom strongly dislikes github. Several other people favor it. The rest don't care or haven't spoken up yet. I'll toss in my 2 cents. For my recent projects I've begun to use fossil. It has a

Re: [AOLSERVER] Does not work ns_return + zlib

2010-12-06 Thread Jeff Rogers
Hossein Sharifi wrote: One problem is that AOLserver doesn't gzip content when ns_return is called; it works for pretty much every scenario except that one. I don't know why this is the case; we just hacked this by recompiling nsd to always gzip regardless of the config file, as long as the

Re: [AOLSERVER] AOLserver, nginx, and port numbers

2011-02-02 Thread Jeff Rogers
It doesn't seem to be documented, but you can set a 'location' parameter for nssock that will override this: ns_section ns/server/server1/module/nssock ns_param port 8082 ns_param location http://shared.furfly.net Cheers, -J Janine Ohmer wrote: My problem is the value returned by [ns_conn

Re: [AOLSERVER] What does 'exiting: exceeded max connections per thread' mean?

2011-02-15 Thread Jeff Rogers
Haig Didizian wrote: Hi there, Is there any wisdom in this community about whether it's better to let these threads run forever, or whether it makes more sense to kill them off after they process a number of connections? As others mentioned, the downside of letting a thread run forever is

Re: [AOLSERVER] Feature request: ns_querygetarray function

2011-05-11 Thread Jeff Rogers
Alexey Pechnikov wrote: 2011/5/10 Dave Bauerd...@thedesignexperience.org: I am not sure I understand hat you are trying to accomplish. What is an HTTP Form Array? I am not aware of such a thing. It looks like you are passing some application specific formatted data and need to process it.

Re: [AOLSERVER] Problem uploading HUGE files. Possible AOLServer bug

2011-05-16 Thread Jeff Rogers
You could set the max upload value to INT_MAX (2^31-1, as you have below), and that should work, but going higher will be difficult. Simply changing the variable to a long in one place is insufficient, because that value is handled in quite a few places, and you'd need to change all of them;

Re: [AOLSERVER] 2Gb log file problem

2011-05-16 Thread Jeff Rogers
The log module supports rolling. Normally it is done daily, but if your logs are growing too quickly and hitting 2G within a day you could set up a cronjob to send the server a signal to roll the logs, or a scheduled task within the server to roll the logs every hour, or when they reach a

Re: [AOLSERVER] 2Gb log file problem

2011-05-16 Thread Jeff Rogers
Alexey Pechnikov wrote: 2011/5/17 Jeff Rogersdv...@diphi.com: Undocumented behaviour is bug, isn't it? I didn't suggest that it wasn't, I only offered a possible workaround for you to solve the immediate problem facing you. There is a bugtracker for aolserver at sf where you can file

Re: [AOLSERVER] 2Gb log file problem

2011-05-17 Thread Jeff Rogers
Alexey Pechnikov wrote: Thx, I use daemontools for starting AOL Server /usr/sbin/aolserver4-nsd -f ... and stdout may be logged by multilog (as example). Oh, the server log has the same issue. That one doesn't have automatic timed rolling, but it will still roll on a signal or an appropriate

Re: [AOLSERVER] Problem uploading HUGE files. Possible AOLServer bug

2011-05-23 Thread Jeff Rogers
Eduardo Santos wrote: Hi Jeff, Thank you for the answer. I was thiking that such a problem really exists, and that's why I decided not to touch the source code on this. It seems to me a bad thing to have a such low limit for file uploads. As I don't know this implementation, do you think

[AOLSERVER] hacking around

2011-06-02 Thread Jeff Rogers
Distracting myself with code diving, I found that internal redirects, implemented by Ns_ConnRedirect and as are used for among other things 404 and 500 error pages, work by changing the url, reauthorizing, and then running the request. However, it does not run preauth and postauth filters.

Re: [AOLSERVER] hacking around

2011-06-06 Thread Jeff Rogers
be useful to set the authorization proc to a tcl callback. There a C api to set it, but that's not exposed at the tcl level. -J -Jim On Jun 2, 2011, at 7:04 PM, Jeff Rogers wrote: Distracting myself with code diving, I found that internal redirects, implemented by Ns_ConnRedirect

Re: [AOLSERVER] hacking around

2011-06-06 Thread Jeff Rogers
Don Baccus wrote: On Jun 6, 2011, at 11:31 AM, Jeff Rogers wrote: I get down into these filters trying to figure out why my OpenACS installation returned error pages for bad urls instead of the Yes, this has been a known problem and known to be due to the fact that filter's not being run

Re: [AOLSERVER] hacking around

2011-06-06 Thread Jeff Rogers
Don Baccus wrote: On Jun 6, 2011, at 2:08 PM, Jeff Rogers wrote: Well my question for now is, if this was fixed/changed in a way like I've suggested, how long would it be before OpenACS could take advantage of the change? Wouldn't it just work automagically if the filter were run and context

  1   2   >