Re: [AOLSERVER] Discussing AOLserver at the Tcl/Tk conference

2011-10-25 Thread Jeff Rogers
I think from the tcl perspective the interp management is interesting. Interps are initialized with a startup script (created through introspection) and reused by multiple requests without reinitializing (cleaned up after each request, again using introspection). -J Matthew M. Burke wrote:

Re: [AOLSERVER] recent updates

2011-10-25 Thread Jeff Rogers
Daniël Mantione wrote: Maybe I could point again at the ipv6 patch I wrote in 2008. Back there was even not even a response on this list, but maybe today, now the world has run out of ipv4 addresses, the interrest in serving ipv6 is a bit higher. Patch still available for download here:

[AOLSERVER] recent updates

2011-10-19 Thread Jeff Rogers
Hey all, me again. For those of you who don't monitor the commits list I wanted to share a few changes I've recently made as well as a few I'm still thinking about. - implemented native decoding of strings in ns_returnfile. This allows filenames that are not utf-8 to be passed, similar to

Re: [AOLSERVER] Fwd: AOL Listserv to be Discontinued

2011-10-19 Thread Jeff Rogers
Sourceforge seems a reasonable choice to me. -J Dossy Shiobara wrote: Everyone, It appears that AOL is going to be shutting own its LISTSERV, which includes several AOLserver mailing lists. Since there's still activity on this mailing list, I think it would be worth moving to a new list.

Re: [AOLSERVER] recent updates

2011-10-19 Thread Jeff Rogers
Fenton, Brian wrote: Hi Jeff congrats on all the great work. That all sounds super. A new AOLserver release would be amazing, but maybe seeing as 4.0 was first released 8 years ago, we could consider that it's about time for a move to 5.0? Not wanting to get too Firefox-y about it, but I think

Re: [AOLSERVER] recent updates

2011-10-19 Thread Jeff Rogers
Brett Schwarz wrote: I'll grab the latest and greatest from SF and start messing around with your changes. Is SF the main repo for aolserver? What about the modules (specifically nspostgres)? Yep, SF is still the place for aolserver and nspostgres (which looks like it has been updated to

Re: [AOLSERVER] Unable to install nssolid database driver on aolserver4.5.0

2011-10-14 Thread Jeff Rogers
Thorpe Mayes wrote: Hi, I am trying to install the solid database drivers and cannot do it. I am running aolserver 4.5.0. I added the nssolid_3.0 driver. I then added solid-fix.tar, which updated the Makefile file and added the nssolid.h file to the nssolid directory. Where is

Re: [AOLSERVER] Fwd: AOLserver 4.5.0 - ns_returnfile does not find file - file name contains special chars

2011-09-25 Thread Jeff Rogers
Klaus Hofeditz ]project-open[ wrote: I gave it a try since some of our users do upload files using tools such as WINSCP. Since these files would also need to be accessible through the ]project-open[ file manager, we need to come up with a slightly more complex solution to detect files with

Re: [AOLSERVER] Fwd: AOLserver 4.5.0 - ns_returnfile does not find file - file name contains special chars

2011-09-22 Thread Jeff Rogers
Another thing you could do is to set tcl's default encoding to utf-8, so that the filenames passed to Ns_ConnReturnFile are the same encoding as what the core tcl commands do. Set the default encoding with encoding system utf-8 in some tcl file. It's possible this could have some side

Re: [AOLSERVER] Aolserver Progress - Some few examples....

2011-08-04 Thread Jeff Rogers
Dossy Shiobara wrote: It's probably safer to define this as SOCKET, but windows.h says SOCKET is: The source comment is misleading, because trigger is set up as a socket pair, not as a pipe. Not sure why it's this way, but there it is. And ns_sockpair is already prototyped as

Re: [AOLSERVER] Aolserver Progress - Some few examples....

2011-08-04 Thread Jeff Rogers
Maurizio, I think we're all in agreement at this point. Could you put together a patch? -J Maurizio Martignano wrote: Don In Aolserver source code 95% of more of the times sockets are declared as SOCKET; the other times as int. This is an inconsistency and is a fact. If you wanted to

[AOLSERVER] adp null end tags

2011-08-04 Thread Jeff Rogers
Hi all, I'm implementing a minor enhancement to the adp parser to make null end tags (aka empty elements or minimized tags) work. Or more simply, if you have a registered adp tag where the end tag matches the opening tag, then rather than mytag name=value/mytag you can simply write mytag

Re: [AOLSERVER] Progress in Aolserver

2011-08-03 Thread Jeff Rogers
Maurizio Martignano wrote: Well… ehm... the version in the tar ball compiles and runs well under Windows… Not so for the version under CVS HEAD: many of the changes introduced have been implemented with a careful eye only for *nix, and not for Windows. By looking at the code I have the

Re: [AOLSERVER] Problem with file uploads larger than maxinput

2011-06-27 Thread Jeff Rogers
A thought for an alternate way to handle this - if the content-length is too large, the just don't read the content, but set an error flag on the conn. That way, an adventurous system could return a custom error page, or even handle reading the content through custom code. I think this could

Re: [AOLSERVER] Problem with file uploads larger than maxinput

2011-06-27 Thread Jeff Rogers
Jim Davidson wrote: I think today, in 2011, some of the flexibility we imagined back in 1995 isn't really so needed. This includes general purpose logging plugins and network drivers when there really is just the common log format, ordinary and SSL sockets. More in the core for the base HTTP

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

Re: [AOLSERVER] hacking around

2011-06-06 Thread Jeff Rogers
Don Baccus wrote: On Jun 6, 2011, at 12:25 PM, Andrew Piskorski wrote: In general, I don't think the ACS/OpenACS 4.x request processor design was EVER carefully thought out with respect to all of AOLserver's features and use cases. Or, in this case, didn't understand the bug that the

[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] 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

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-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] 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] 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] 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] TLS package issue

2010-12-06 Thread Jeff Hobbs
any one encountered same using TLS . BTW, everyone should be using 1.6.1 because it fixed a mem leak on each tls::status call. Jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to lists...@listserv.aol.com with the body of SIGNOFF AOLSERVER

Re: [AOLSERVER] TLS package issue

2010-12-06 Thread Jeff Hobbs
On 06/12/2010 1:14 PM, Michael A. Cleverly wrote: On Mon, Dec 6, 2010 at 10:18 AM, Jeff Hobbsje...@activestate.com wrote: BTW, everyone should be using 1.6.1 because it fixed a mem leak on each tls::status call. I only see 1.6 at http://sourceforge.net/projects/tls/files/tls/ (released

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] Does not work ns_return + zlib

2010-12-02 Thread Jeff Hobbs
On 2010-12-02, at 12:44 AM, Gustaf Neumann wrote: Please don't listen to the Tcl gurus, they are behind the curve...actually they are actively slowing down the curve. Come on, stop that bashing. Jeff was referring to http://code.activestate.com/lists/tcl-core/9805/ Actually even more

Re: [AOLSERVER] Does not work ns_return + zlib

2010-12-01 Thread Jeff Hobbs
On 01/12/2010 12:31 PM, Tom Jackson wrote: Personally I also wouldn't assume that AOLserver works perfectly with Tcl8.6. Unless you absolutely need 8.5, I would stick with the latest 8.4 version. For one thing 8.4 is faster than either. That's no longer true. -- AOLserver -

[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] Git on SourceForge

2010-11-16 Thread Jeff Davis
On 16 Nov 2010, at 18:15, Tom Jackson wrote: http://aolserver.git.sourceforge.net/git/gitweb-index.cgi I am not sure why you think using gitweb is good - I find it pretty unpleasant. More to the point is that any clone has a full revision history so I am not sure why you would really care so

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
: http://example.com ^n:ds[4U Notice the Content-Length header. As Jeff told me, I've now been able to output the 8 byte body of the request. Then I was creating an ns_chan with: set ch [ns_conn channel] ns_chan create $ch $chan_name and getting it back with: set ch [ns_chan get $chan_name

Re: [AOLSERVER] Configuring nsopenssl - unable to get to work

2010-10-27 Thread Jeff
Note this line in your startup log: [27/Oct/2010:17:23:55][13466.3061930912][-nsopenssl:driver-] Notice: nsopenssl: listening on 64.58.34.55:8443 Your ssl server is running fine at https://www.getreadytoshift.com:8443/ Somewhere in your config is a setting like set httpsport 8443 Change

Re: [AOLSERVER] AOLServer Terminal Escape Sequence in Logs Command Injection Vulnerability

2010-09-13 Thread Jeff Hobbs
IOW, fix the consumer (where the real bug is), not every producer. On 13/09/2010 2:16 PM, Dossy Shiobara wrote: Actually, someone made the point -- what if you log request *headers* and someone puts a malicious byte sequence in that header? What's the rule around escaping the header values?

Re: [AOLSERVER] Handling threads the right way

2010-06-29 Thread Jeff Hobbs
/_endthreadex. Jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to lists...@listserv.aol.com with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

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] 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] 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

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] 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] AoLserver 4.5.1 install issue

2009-10-16 Thread Jeff Hobbs
built Tcl single-threaded. Or download ActiveTcl 8.5, which is built with --enable-threads across all platforms and comes with the Thread extension: http://www.activestate.com/tcl Jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email

Re: [AOLSERVER] Bug in gzip compression module

2009-10-15 Thread Jeff Hobbs
On 14-Oct-09, at 9:17 PM, Daniel Stasinski wrote: Without version info from the original poster, who knows? But for good measure, could you link to your fix so we can figure out if it has been undone? I wanted to follow up and make sure my diff and source file's actually made it through

Re: [AOLSERVER] 3 aolserver questions reagrding calender/drop down list/security

2009-09-26 Thread Jeff Hobbs
wide integer (int64_t) and double is double. Jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to lists...@listserv.aol.com with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

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] 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] ns_httptime format error in AOL 4.5.1

2009-05-09 Thread Jeff Hobbs
On 09/05/2009 1:32 PM, Tom Jackson wrote: Anyone know if the Tcl clock functions are thread-safe? Yes, they are. 8.4 had a few issues earlier on, but 8.5 has a completely rewritten 'clock' that certainly does away with those issues. Jeff -- AOLserver - http://www.aolserver.com

Re: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-09 Thread Jeff Hobbs
On 9-May-09, at 2:46 PM, Tom Jackson wrote: On Sat, 2009-05-09 at 14:14 -0700, Jeff Hobbs wrote: You mention incompatibilities - what are they? It should be 100% upwards compatible, though it has new features. However, it isn't necessarily 100% compatible on the date scan detection, since

Re: [AOLSERVER] TLS 1.6 and Aolserver

2009-05-07 Thread Jeff Hobbs
If Diffie Helmann is the only real issue here, maybe this should also be considered and DH removed by default configure. https://sourceforge.net/tracker/?func=detailaid=1811445group_id=13248atid=313248 Jeff On 06/05/2009 6:45 PM, Sep Ng wrote: Hi Jeff, I'm going to review options on how

Re: [AOLSERVER] Fwd: [AOLSERVER] TLS 1.6 and Aolserver

2009-05-05 Thread Jeff Hobbs
this is completely out of the picture. I agree with Jeff that TCL threads and mutex is the right way to handle this but I'm wondering if the code I wrote has some incorrect implementation, which is leading to still the same crash happening. Minor point is that I have yet to find a place to run

Re: [AOLSERVER] Fwd: [AOLSERVER] TLS 1.6 and Aolserver

2009-05-05 Thread Jeff Hobbs
that OPENSSL_THREADS was true for this install). This patch is against tls 1.6 head. Jeff On 05/05/2009 3:42 PM, Sep Ng wrote: I'll try it. I didn't give it much thought at first but looking at it again, I think it might prevent the long string of ns_free and other calls to free memory after

Re: [AOLSERVER] Fwd: [AOLSERVER] TLS 1.6 and Aolserver

2009-05-04 Thread Jeff Hobbs
, Jade Rubick jrub...@truist.com wrote: Jeff: Here is a backtrace of the crash with 1.6 stable. Did you need it from head? J Jade Rubick Director of Development TRUiST 120 Wall Street, 4th Floor New York, NY 10005 USA jrub...@truist.com +1 503 285 4963 +1 707 671 1333

Re: [AOLSERVER] TLS 1.6 and Aolserver

2009-04-29 Thread Jeff Hobbs
, with the ns_free layering over the threaded Tcl allocator. Can't really say much else, except that it does work without the other components involved. Jeff TLS BACKTRACE FROM 1.6 stable (without disabling DH) *Complete backtrace:* (gdb) bt #0 0xe410 in __kernel_vsyscall () #1 0xb7cd4875 in raise

Re: [AOLSERVER] Possible bug in TLS?

2009-04-23 Thread Jeff Hobbs
Hi Jade, Sorry about the delayed response, I was on vacation the last couple of weeks. Your code line is not consistent with tls 1.6. I would recommend trying the latest release first, which has a few mem leak and cleanup issues noted. Jeff On 14/04/2009 10:11 AM, Jade Rubick wrote: We

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] 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

[AOLSERVER] broken pipe error when posting

2008-10-30 Thread Jeff Lu
Hi, I am wondering what is causing the error error writing sock#: broken pipe. I am sure my box is able to post to the youtube upload page because youtube throws an error when I set the contents of my video file to an empty string. (The video file I am using is a small 187kb file.) If I set the

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] aolserver.com website unavailable

2008-09-19 Thread Jeff Hobbs
move. Jeff -- 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 Subject: field of your email blank.

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] 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-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-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,

[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

[AOLSERVER] AOLServer and Tcl classes available in Virginia in Oct

2008-07-23 Thread Jeff Hobbs
of you there. Regards, Jeff -- 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 Subject: field of your email blank.

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

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] Compression

2008-04-13 Thread 'Jesus' Jeff Rogers
Don Baccus wrote: On Apr 12, 2008, at 8:46 AM, Brett Schwarz wrote: For *my* application, I would have the config params do the decision almost all of the time. However, I concede that other people's use cases may be different...so I think a hook into the compression decision making from

Re: [AOLSERVER] can someone make this change

2008-04-09 Thread Jeff Hobbs
all hope are dead and buried. The /usr/bin/env tclsh is the preferred way to specify the #! line now. Jeff -- 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

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] 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

[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] 32- vs. 64-bit mem bloat

2008-02-29 Thread Jeff Hobbs
and practice ... it could be that the alignment of data in Tcl and/or AOLServer for 64-bit processes is just very poor, causing massive overallocation. Jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body

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

Re: [AOLSERVER] Google Summer of Code

2008-02-28 Thread Jeff Hobbs
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] 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

[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
That'd be great, and I'll be happy to help with the docs where I can. -J Dossy Shiobara wrote: Jeff, I've implemented both an OpenID provider and consumer in Tcl for AOLserver for my blog. I haven't published the code yet because I haven't had a chance to document any of it, but if you'd

Re: [AOLSERVER] AOL server with 8.5

2008-01-09 Thread Jeff Hobbs
what the history of that is off the top of my head, but it is named like a public command. We'll try and address it for 8.5.1. Jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER

Re: [AOLSERVER] TCL and EDIFACT

2007-10-25 Thread Jeff Hobbs
... http://wiki.tcl.tk/6228 Jeff -- 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 Subject: field of your email blank.

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

  1   2   3   >