Re: ApacheCon Presentations

2008-11-08 Thread Tim Bray
On Nov 7, 2008, at 7:37 PM, Paul Querna wrote: Two that I thought the list might find interesting First Tim Bray gave an overview of mod_atom -- including the things that were hard about building an apache module: http://www.tbray.org/tmp/AC2008.pdf I suppose, if people want, I could

Re: Broken trunk build

2008-10-30 Thread Tim Bray
On Oct 29, 2008, at 6:21 AM, Nick Kew wrote: When svn up breaks a source file, at least you get a meaningful error message pointing to exactly what needs fixing. This m4 is nasty! If /usr/bin/m4 were by arbitrary fiat deleted from all unix-like systems world-wide, there would be

Re: MPMs, COW vs Child Process Spawning

2008-10-30 Thread Tim Bray
On Oct 30, 2008, at 2:16 AM, Graham Leggett wrote: I don't think the intention would be to use a single process on Unix -- we would still spawn multiple children -- they would just be created using fork+exec of the httpd binary, rather than just fork. This doesn't make sense - fork is

Patch for INSTALL

2008-09-16 Thread Tim Bray
Just a piece of advice that, had I'd received it, would have saved me a couple days of yak shaving. -T === --- INSTALL (revision 695999) +++ INSTALL (working copy) @@ -37,6 +37,12 @@ include a sufficiently

Re: svn commit: r691418 [2/2] - in /httpd/httpd/trunk: ./ docs/manual/mod/ modules/filters/

2008-09-09 Thread Tim Bray
On Sep 9, 2008, at 1:38 PM, Ruediger Pluem wrote: IMHO the following patch should fix the mod_mbox error by correctly encoding these chars: Index: module-2.0/mod_mbox_cte.c === --- module-2.0/mod_mbox_cte.c (Revision 693585) +++

Re: Packaging

2008-08-14 Thread Tim Bray
On Aug 14, 2008, at 7:18 AM, John Hosie wrote: What packages do I need to install on a Red Hat Linux server to do C development and create an Apache module? On Mac OS X, assuming you've got a C compilation environment (if not, go get your install CD and install XCode Tools (sigh)), all you

Emacs lore for Apache?

2008-07-03 Thread Tim Bray
I ran into a showstopper NetBeans problem and until it's fixed, am switching to Emacs for my module dev work. Any apache/emacs lore would be appreciated. Will one of the string arguments to c-style Do The Right Thing? Any other goodies for my .emacs? -T

Re: AW: Re: Splitting source

2008-06-25 Thread Tim Bray
On Jun 25, 2008, at 1:00 AM, Jens Frey wrote: Hi Tim, thanks so much for pointing me to your example, that seems to work this way ... just if anyone needs this too, what i did was which differs from Tim's version slightly with the file endings. Yeah, I was previously using *.slo instead

Re: Splitting source

2008-06-24 Thread Tim Bray
On Jun 24, 2008, at 1:28 AM, Jens Frey wrote: Hi all, i am trying to develop a module where parts of the source is in other files. The question now is, where exactly in the Makefile do i plug that in? If i use apxs to build a simple module it creates a few files, like: I got that working

Hard to build httpd APR on OS X Leopard

2008-01-11 Thread Tim Bray
Disclosure: My autotools expertise is not that great. In fact, since I've been in Ruby Java mostly the last few years, I may be missing something obvious at the ld or gcc level. This is all with a fresh 2.2.6 tarball downloaded earlier this week. This note to both [EMAIL PROTECTED]

Debugging httpd

2008-01-09 Thread Tim Bray
Hi... I'm back to work on mod_atom and chasing a weird bug around. Anyhow I totally can't figure out what some apr code is doing so I wanted to step into it with the debugger. This sounds lame, but I can't figure out how to build an httpd that has APR linked with debug information.

Re: Debugging httpd

2008-01-09 Thread Tim Bray
On Jan 9, 2008, at 5:16 PM, William A. Rowe, Jr. wrote: Hi... I'm back to work on mod_atom and chasing a weird bug around. Anyhow I totally can't figure out what some apr code is doing so I wanted to step into it with the debugger. This sounds lame, but I can't figure out how to build an

Re: svn commit: r571928 - /httpd/httpd/branches/2.2.x/STATUS

2007-09-02 Thread Tim Bray
On Sep 2, 2007, at 5:24 AM, Graham Leggett wrote: [EMAIL PROTECTED] wrote: Is nbsp; valid in XML? The answer is complicated. One approach is to use #xA0; which is kinda ugly but works in lots more places. -T

Re: If-Match / If-None-Match PUT broken-ness in mod_dav

2007-08-28 Thread Tim Bray
On Aug 28, 2007, at 9:08 AM, Tim Olsen wrote: http://issues.apache.org/bugzilla/show_bug.cgi?id=16593 http://issues.apache.org/bugzilla/show_bug.cgi?id=38034 I find the mod_dav code a little scary, but on the other hand I have ETags working properly with PUT in mod_atom, and there are a

Re: -X and SIGTERM

2007-06-28 Thread Tim Bray
On Jun 28, 2007, at 11:54 AM, Brian J. France wrote: Here is a patch that will allow SIGTERM to work with -X http://www.brianfrance.com/software/apache/httpd.signal.diff Without the patch running httpd on the command line with -X and trying to stop it can only be done by backgrounding it

mod_atom

2007-06-27 Thread Tim Bray
Passes lots of tests, but still lots of work to do: written up at (extreme) length here: http://www.tbray.org/ongoing/When/200x/ 2007/06/25/mod_atom I don't know if httpd needs this mod_atom, but I suspect that it'll need some mod_atom or another before too long. It would be nice to be

Re: mod_atom

2007-06-27 Thread Tim Bray
On Jun 27, 2007, at 12:44 AM, Paul Querna wrote: In a way, you could view the Atom Publishing Protocol in the same light as DAV. In that case, it makes sense to have generic module which handles the protocol bits of APP, and provides a set of callbacks/providers for other modules to use.

Re: mod_atom

2007-06-27 Thread Tim Bray
On Jun 27, 2007, at 3:33 PM, Ian Holsman wrote: The whole point of APP is so dumb clients like cellphones and blog- authoring packages can push bits at a server and leave the server in control of where things go. I'm trying to imagine what the storage hooks might look like. If I am

Re: URL encoding/decoding

2007-06-01 Thread Tim Bray
On Jun 1, 2007, at 7:53 AM, Frank Jones wrote: Is there a function in the APR or elsewhere that performs URL encoding/decoding (aka percent-encoding)? I've searched all over for one but haven't found anything. mod_security has these functions but it doesn't export them for some reason. It

Basics on generating content

2007-05-27 Thread Tim Bray
I'll open this plea for advice by offering some free advice to other module-writing newbies like me. When you're trying to figure out wtf some piece of code, e.g. apr_xml_to_text, does, the following will get you the answer by example, most times: find modules -name '*.c' -print | xargs

Generating XML

2007-05-16 Thread Tim Bray
I want to generate some fairly large amounts of XML programmatically inside my module. Poking around apr_xml.h and util_xml.h doesn't turn up a lot of support for this. Am I looking in the wrong place? Obviously, with qpr_xml_quote_string and apr_rprintf I can do it by hand, but there

Re: Generating XML

2007-05-16 Thread Tim Bray
On May 16, 2007, at 11:27 AM, William A. Rowe, Jr. wrote: You can count on expat 1.95-ish generation (possibly 2.00) to be built with httpd. Um... the expat 1.95 that's in the current source doesn't seem to have any generation functions; am I missing them or did I mis-read you? You

Testing debugging?

2007-05-05 Thread Tim Bray
I'd be so much happier if I had unit tests, but it's tricky since everything's static. My best idea is to have an #ifdef TESTING section in my code that has a main() in it that runs the tests (of course this means actually *understanding* the lovely makefile goodness I copied from Josh

Re: Looking for TFM on OS X module building

2007-05-01 Thread Tim Bray
On May 1, 2007, at 11:18 AM, josh rotenberg wrote: I put my tarball of stuff up on google code for anyone else that might be interested: http://code.google.com/p/modskeleton/ The goal is to have something that sets you up for mutliple source files, a utils directory for other binary

Looking for TFM on OS X module building

2007-04-27 Thread Tim Bray
I'm sketching in a module for 2.2.4 and having trouble with compiling it on OS X. Neither google nor a survey of this group's archive turn up any ideas. Suppose I have mod_foo.c; I assume the goal is to produce a mod_foo.so or mod_foo.dylib in $INSTALL/modules/ Is this written up