Re: New to module development

2007-03-14 Thread Drew Bertola
Joe Lewis wrote: It should be provided with your distribution : apache-devel is the RPM you need. And probably apr-devel and apr-util-devel -- Drew

Re: how to link to some other library

2007-01-30 Thread Drew Bertola
? ?? wrote: hello I have written one module that will use some non standard library(outside appache). It seems when i do the make, it can not find the correct library. I guess i have to make some change to the configure.in or Makefile.in in apache. However, i am not so sure. Is there

ap_get_module_config() questions...

2007-01-10 Thread Drew Bertola
Hi everyone, I have a couple quick questions regarding ap_get_module_config(). First, how do I return valuable information if there's a config error? For example, if my config has the directive MyFile conf/foo.txt and the file doesn't exist, how can I report this when I run httpd -t?

[solved] Re: segfault w/ APR_BUCKET_PREV...

2007-01-09 Thread Drew Bertola
)) ) ( ! APR_BUCKET_IS_FLUSH(APR_BUCKET_NEXT(b)) ) ( APR_BUCKET_NEXT(b) != APR_BRIGADE_SENTINEL(bb) ) ) { . . . } -- Drew Drew Bertola wrote: Happy Monday, I'm getting a segfault whenever I try to read the next bucket. I'm trying to do this without losing

segfault w/ APR_BUCKET_PREV...

2007-01-08 Thread Drew Bertola
Happy Monday, I'm getting a segfault whenever I try to read the next bucket. I'm trying to do this without losing the current bucket. If I do: b = APR_BUCKET_NEXT(b); apr_bucket_read(b, str, len, APR_NONBLOCK_READ); b = APR_BUCKET_PREV(b); I get a segfault. I'm not sure what the correct way

Re: apr_bucket_split question...

2007-01-05 Thread Drew Bertola
Sorry to be a pest with this easy question, but it's not documented, and I'm having a hard time with this function. Anyone? Drew Bertola wrote: Hi, If I split a bucket using: apr_bucket_split(b, offset) what exactly happens to the two pieces? My impression is that b is now the head piece

Re: help with filter example: null_filter...

2007-01-03 Thread Drew Bertola
Thanks Joachim and Nick. I'm finally getting the idea. Nick, it's not obvious where to find the files and tutorials on your site. I tried yesterday, but gave up after a couple minutes, choosing instead to continue w/ some other work. I looked again today and found the buckets tutorial you

Re: splitting a string...

2007-01-02 Thread Drew Bertola
Joachim Zobel wrote: Am Montag, den 01.01.2007, 06:18 -0800 schrieb Drew Bertola: This generates segfaults when processing php and doesn't help with my problem. Is the problem due to filter order? To find out more about the segf's do [snip - thanks] I'm confused about the cause

Re: splitting a string...

2007-01-02 Thread Drew Bertola
Joachim Zobel wrote: Am Dienstag, den 02.01.2007, 01:14 -0800 schrieb Drew Bertola: line 91 looks like this: apr_bucket_read(e, str, len, APR_NONBLOCK_READ); Also, it only happens if I use APR_BRIGADE_INSERT_TAIL(ctx-bb, e); Ah, understood. You don't mention

Re: splitting a string...

2007-01-01 Thread Drew Bertola
Thanks for all the ideas. They've come in very handy. I haven't done extensive testing, and the module is still too stupid to read configuration data, but I've gotten much farther. Right now, static html works fine, but php pages (need both per customer requirements) spit out too much at the

Re: splitting a string...

2006-12-31 Thread Drew Bertola
Joachim Zobel wrote: Hi. One recommendation beforehand: If you can live with the memory footprint, use mod_perl. It gives you full access to the apache API and it is much easier to handle. Thanks for the response. I considered mod_perl, but we're trying to keep this very light weight.