httpd/unix-directory - when should this be visible?

2017-07-09 Thread Joachim Zobel
Hi. I am observing a content type httpd/unix-directory returned from a subrequest to a directory. Is this expected behaviour? Sincerely, Joachim -- Papier ist gebundenes CO2. Bitte drucken Sie diese EMail aus und archivieren Sie sie.

Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-06-21 Thread Joachim Zobel
Hi. Just wanted to point out that as a workaround running as root worked for me (on debian stretch using cpan2deb). Sincerely, Joachim -- Papier ist gebundenes CO2. Bitte drucken Sie diese EMail aus und archivieren Sie sie.

Re: Question on sub requests and output filter context.

2011-09-18 Thread Joachim Zobel
On Thu, 2011-09-15 at 11:52 +0100, Martin Townsend wrote: Having stepped through with the debugger I can see that the pointer to the output filter when processing the main HTML page is different to the one when parsing custom tags in SSI pages. This is IMHO expected behavior. Different

Stack corruption mysterie

2011-09-10 Thread Joachim Zobel
Hi. I have the following simple function. /* * xml2_make_start_bucket */ apr_bucket *xml2_make_start_bucket(apr_bucket * b) { bucket_node *bn = b-data; apr_bucket *end; if (bn-node-type != XML_ELEMENT_NODE !IS_DOCUMENT_NODE(bn-node)) { return NULL; }

Re: Stack corruption mysterie

2011-09-10 Thread Joachim Zobel
Just wanted to add the gdb output from the core dump. 213 ap_assert(end == bn-end); (gdb) p end $1 = (apr_bucket *) 0x914638b8 (gdb) p bn-end $2 = (apr_bucket *) 0x7fa9914638b8

Solved: Stack corruption mysterie

2011-09-10 Thread Joachim Zobel
On Sat, 2011-09-10 at 13:26 +0200, Joachim Zobel wrote: apr_bucket *end = xml2_make_start_bucket(b); ap_assert(end == bn-end); This was caused by a missing function declaration for xml2_make_start_bucket in the calling file. I had overlooked the implicitely converting pointer

Re: mod_lua Filter Hook?

2011-06-22 Thread Joachim Zobel
On Thu, 2011-06-16 at 09:35 -0600, Brian McCallister wrote: What I would want in the API: 1) It exposes the same abstractions as the C api, but in a Lua idiommatic manner. It may be possible to bridge the gap between brigades using coroutines while completely hiding brigades. Is that what

Re: mod_lua Filter Hook?

2011-06-15 Thread Joachim Zobel
On Mon, 2011-06-13 at 11:14 -0600, Brian McCallister wrote: I'd very much like to support filters in mod_lua, but have not had a chance to figure out the best way to do it. Help would be VERY appreciated :-) mod_perl does this pretty good IMHO. The point is auto generation of usable API

Re: mod_lua Filter Hook?

2011-06-15 Thread Joachim Zobel
On Wed, 2011-06-15 at 17:04 -0400, Akins, Brian wrote: For filters, etc, not sure we really need buckets in Lua. Maybe just represent them as a table of buffers or something simple like that. This misses my (admittedly not so important) use case of sax buckets. See

mod_lua Filter Hook?

2011-06-08 Thread Joachim Zobel
Hi. Will the mod_lua filter hook be implemented in the near future? I am aware that this requires wrapping buckets and brigades, which is a lot of work. Are there any plans for generated API wrappers as mod_perl has them? Sincerely, Joachim

Re: Obscure warning compiling a module on amd64 with gcc

2009-09-21 Thread Joachim Zobel
Adding the declaration AP_DECLARE(void **) ap_get_request_note(request_rec *r, apr_size_t note_num); from the http_core.h after the headers are included silences the warning. Weird. Sincerely, Joachim

Obscure warning compiling a module on amd64 with gcc

2009-09-18 Thread Joachim Zobel
Hi. I get the following warning compiling my module on linux/amd64 for Apache/2.2.9 with apxs: .. int test = ap_get_request_note(r, AP_NOTE_DELAY) ; void **pp_delay = ap_get_request_note(r, AP_NOTE_DELAY) ; .. mod_delay.c:66: warning: initialization makes pointer from integer without a

RE: Memory leaks on adding module directives on virtual host.

2009-07-09 Thread Joachim Zobel
Am Donnerstag, den 09.07.2009, 09:11 +0530 schrieb Jaysingh Samuel: In the command table we get the serverConfig pointer and store the value like the following. serverConf = ap_get_module_config(parms-server-module_config, xyz_module); serverConf-abc = apr_pstrdup(parms-pool, arg); This

Re: do I need a custom proxy?

2009-06-03 Thread Joachim Zobel
Am Dienstag, den 02.06.2009, 08:45 -0400 schrieb Sam Carleton: My thought is create a custom mod_proxy that will redirect some URL's from the public facing Apache to the internal IIS. Is this the correct approach or is there an approach that does not require actual development? Probably

Re: Some ramblings on httpd config

2009-06-03 Thread Joachim Zobel
Am Mittwoch, den 03.06.2009, 11:08 -0400 schrieb Akins, Brian: It would be interesting if we ditched the current configuration system and just used lua. This does IMHO not address any of the problems users usually have and that are mainly due to a lack of validation. See

Re (somewhat late): Ideas for content-aware filter modules for 2.4

2009-04-14 Thread Joachim Zobel
Am Donnerstag, den 26.03.2009, 23:18 + schrieb Nick Kew: 2. Generic XML support. [...] Joachim Zobel's mod_xml2 abstracts this further by defining SAX event buckets (e.g. startElement bucket) and passing them down the filter chain. We could build on the same approach to pass DOM or

Re: Subrequest breaking original request

2008-04-25 Thread Joachim Zobel
Am Mittwoch, den 09.04.2008, 11:26 -0300 schrieb César Leonardo Blum Silveira: Is there any chance the ap_run_sub_req call could be breaking my original request? You don't have to actually do the subrequest, a call to ap_sub_req_lookup_uri is enough. Sincerely, Joachim

Re: long running background tasks

2008-03-16 Thread Joachim Zobel
Am Dienstag, den 11.03.2008, 23:59 -0400 schrieb Sam Carleton: When a user logs out of my web application, the application needs to do a somewhat time consuming cleanup. I need Apache to respond in a timely fashion to the log out request. Is there any way to start this as a background

Re: Handling multiple requests simultaneously in one thread

2008-01-12 Thread Joachim Zobel
Am Freitag, den 11.01.2008, 09:03 -0800 schrieb Chris Dahl: Are there any modules you know about out there that do something like this? The event-mpm possibly does such things, but I never looked any closer. Sincerely, Joachim

Re: Transcoding module for libxml2-based filters

2008-01-04 Thread Joachim Zobel
Am Dienstag, den 25.12.2007, 22:54 + schrieb Nick Kew: As developer or co-developer of several libxml2-based filter modules, ... Hey, I thought you were on the expat side :) The basic features are: 1. Sniff charset of incoming data, from (in order): (a) HTTP headers, if

Re: Transcoding module for libxml2-based filters

2008-01-04 Thread Joachim Zobel
Am Freitag, den 04.01.2008, 22:06 + schrieb Nick Kew: This means two different filter functions, right? No, one function, with its behaviour determined by its ctx. Sure? IMHO two functions that call the same infrastructure function might be clearer. But YMMV, I am an enemy of state.

Interfacing with mod_negotiation

2008-01-02 Thread Joachim Zobel
Hi. For my module mod_i18n I would need an interface to content negotiation. I want to say Dear mod_negotiation, I offer the following language variants (for the current request). Which one do you choose?. By now the only way to do this is to put variant files or a type map in the file system and

Re: Interfacing with mod_negotiation

2008-01-02 Thread Joachim Zobel
Am Mittwoch, den 02.01.2008, 11:52 -0600 schrieb William A. Rowe, Jr.: Joachim Zobel wrote: I want to say Dear mod_negotiation, I offer the following language variants (for the current request). Which one do you choose?. Wondering if this is worth a great deal of time until we define

Re: Interfacing with mod_negotiation

2008-01-02 Thread Joachim Zobel
Am Mittwoch, den 02.01.2008, 20:52 + schrieb Nick Kew: On Wed, 02 Jan 2008 21:42:43 +0100 Joachim Zobel [EMAIL PROTECTED] wrote: There is probably some grand unified approach ahead, with filter layers between VFSes that besides the usual filter stuff do URL rewriting

Re: performance vs development time

2007-11-26 Thread Joachim Zobel
Am Sonntag, den 25.11.2007, 21:32 -0500 schrieb Sam Carleton: In the rewrite, I am considering caching the data in these files and reading them only if they are changed. The question though is: Considering how small these files are, will the performance gains be worth the extra development

Reference counted pool

2007-11-05 Thread Joachim Zobel
Hi. I need want to implement a reference counted pool, which is actually destroyed/cleared when the last client destroys/clears it. For this I would like to stop pool destruction from a pool cleanup function. Is this possible - how can I do this? Sincerely, Joachim

Re: rewriting request uri in a request handler

2007-10-29 Thread Joachim Zobel
Am Mittwoch, den 24.10.2007, 11:55 +0200 schrieb Holger Moser: I have a question regarding request uri rewriting in an request_handler, right now i do this by overwriting the request_rec-uri element which works but leads to a second call of my request handler (it seems that apache recognizes

Re: shared table (create a pool from a block of memory?)

2007-08-04 Thread Joachim Zobel
Am Freitag, den 03.08.2007, 16:54 -0500 schrieb Ray Morris: More complex data needs to be held in a structure like a table, though. If you need a shared table consider using a relational database. It is much more scaleable, it handles concurreny and it is probably faster than you think.

Re: Idle time?

2007-08-04 Thread Joachim Zobel
Am Donnerstag, den 02.08.2007, 13:00 -0400 schrieb Farokh Irani: Does apache support calling modules at idle time, ie after a time interval when there's nothing going on, calling the modules so they can get some processing time? AFAIK no. You can run a job that uses OS process priorities

Re: Module localization

2007-07-24 Thread Joachim Zobel
Am Montag, den 09.07.2007, 16:15 -0300 schrieb César Leonardo Blum Silveira: We have a separate log for our module, and we would like to localize the messages. i18n can be done with gettext, there is however no thread safety unless you find out how to use uselocale. See the implementation of

Re: rewrite url with query string causing issues

2007-06-13 Thread Joachim Zobel
Hi. Check out the QSA option for the RewriteRule. If this does not help the module developers list [EMAIL PROTECTED] is the appropriate place for such a question. Sincerely, Joachim

Documenting Modules

2007-05-09 Thread Joachim Zobel
Hi. How do I document modules the way apache does it? There seems to be an XML format that is used to generate the documentation. Where can I read about this? Thx, Joachim

Re: Documenting Modules

2007-05-09 Thread Joachim Zobel
Am Mittwoch, den 09.05.2007, 19:50 +0100 schrieb Nick Kew: On Wed, 09 May 2007 18:16:46 +0200 Joachim Zobel [EMAIL PROTECTED] wrote: There seems to be an XML format that is used to generate the documentation. Where can I read about this? Download apache (any version) and look

Re: Documenting Modules

2007-05-09 Thread Joachim Zobel
Am Mittwoch, den 09.05.2007, 14:36 -0400 schrieb Marc Dostie: Are you referring to doxygen? See http://www.doxygen.org/ No. I want to generate the html pages apache uses for module documentation (e.g. http://httpd.apache.org/docs/2.2/mod/mod_example.html) Sincerely, Joachim

Re: Documenting Modules

2007-05-09 Thread Joachim Zobel
Am Mittwoch, den 09.05.2007, 16:11 -0300 schrieb Davi Arnaut: http://httpd.apache.org/docs-project/docsformat.html Aaahh! Could not find that with google. Thanks, Joachim

Re: Child pool not usable for logging

2007-05-07 Thread Joachim Zobel
Hi. Now that I understand what is happening I do undestand your post. Maybe I should have read it more carefully. Thx anyway, Joachim

[Solved] Child pool not usable for logging

2007-05-07 Thread Joachim Zobel
Am Sonntag, den 06.05.2007, 14:25 +0530 schrieb Saju Pillai: err - asking obvious question but .. Your LogLevel is set to debug right ? You were pretty close. According to nicks book (bottom of p. 324), ap_log_perror does not have access to the server_rec and therefor can not know the log level.

Re: Child pool not usable for logging

2007-05-05 Thread Joachim Zobel
Am Samstag, den 05.05.2007, 13:44 -0400 schrieb Tom Donovan: static apr_pool_t *p_cur = NULL; void xml2_set_current_pool(apr_pool_t * p) { // Needed for free-logging p_cur = p; } static void xml2_child_init(apr_pool_t * p, server_rec * s) {

Re: Looking for a parsing module

2007-04-17 Thread Joachim Zobel
Am Samstag, den 14.04.2007, 18:44 -0700 schrieb Soumya Sanyal: I'm new to this list and I joined to find out what I haven't so far through countless searches. I require an apache module to extract a certain string (supplied as a regex potentially and possibly a child element of an XML within

Module dependencies

2007-04-13 Thread Joachim Zobel
Hi. I have a module (mod_xml2) that exports several functions and another one (mod_i18n) that uses them. So by now mod_xml2 has to be loaded first. This is of course not desirable and I want to get rid of it. Are there any other possibilities than to make all exported functions optional?

Re: concern about memory management

2007-04-04 Thread Joachim Zobel
Am Montag, den 02.04.2007, 21:44 -0400 schrieb Sam Carleton: I am looking at using the deviL graphics library to downsize the images in the apache module I am developing. Currently it manages it's own memory, I don't know the details, though. Am I getting carried away with wanting to simply

Re: deny access to unknow IP addresses

2007-03-24 Thread Joachim Zobel
Am Samstag, den 24.03.2007, 17:54 + schrieb devel: Anyone know a module filter,or method, that implement a routine in server to only process request of know IP addresses? http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html Sincerely, Joachim

Re: load data at server startup - is ap_hook_post_config() the right place?

2007-03-24 Thread Joachim Zobel
Am Donnerstag, den 22.03.2007, 09:21 -0400 schrieb Danie Qian: I am new to module development but I want to develop a module so I can manage the uri of the thousand of sites more efficiently. What I want is to load a mysql table data into the memory of Apache server at its startup stage

Re: DBD framework, APR, caching

2007-03-22 Thread Joachim Zobel
Am Donnerstag, den 22.03.2007, 14:03 +0100 schrieb Helmut Tessarek: Writing stored procedures is usually part of the DBA, but if the database server is not on the same machine as the web server, stored procedures are most of the time faster than SQL statements invoked from the client. The

Trivial Patch for http_config.h

2007-03-21 Thread Joachim Zobel
Hi. This is just a typo. Sincerely, Joachim --- http_config.h 2007-03-21 21:34:06.0 +0100 +++ http_config.h.fix 2007-03-21 21:32:54.0 +0100 @@ -115,7 +115,7 @@ /** method of declaring a directive with no arguments */ # define AP_INIT_NO_ARGS(directive, func, mconfig,

How do I interface with language negotiation

2007-03-14 Thread Joachim Zobel
Hi. Finally I am putting the pieces together for mod_i18n. The one thing that is missing is that it needs to talk to the language negotiation. I want language negotiation to select one out of a set of several languages I can deliver. Sincerely, Joachim

Re: Questions on modules to provide cache functions for Apache

2007-03-06 Thread Joachim Zobel
Am Dienstag, den 06.03.2007, 11:42 -0800 schrieb Erica Zhang: No, still not work. Infact, mod_cache could work, because it could cache the javascript. But it could not work for dynamic HTTP responses responding to XMLHttpRequests in Ajax technology. So I suspect mod_cache could not support

Re: How to identify apache memory

2007-03-05 Thread Joachim Zobel
Am Montag, den 05.03.2007, 17:23 + schrieb Nick Kew: On Mon, 05 Mar 2007 07:55:06 +0100 Joachim Zobel [EMAIL PROTECTED] wrote: I can however provide my own memmory allocation functions to libxml2, so if I can identify apache memory, I can work around this. Have you looked

Re: How to identify apache memory

2007-03-05 Thread Joachim Zobel
Am Montag, den 05.03.2007, 13:42 -0600 schrieb William A. Rowe, Jr.: Just register one of two free functions as cleanups of the pool, based on the origin of the data. How could that help me? I think I don't get the idea. I think I should restate my problem. I can do something like

Re: how to say to apache, to not send headers

2007-03-04 Thread Joachim Zobel
Am Sonntag, den 04.03.2007, 21:45 +0100 schrieb bronto: Anyway, now I just run close(socket) and shutdown(socket), and that's it. However Apache is complaining about bat file-descriptors, but...as far as it works ;) This is pretty harsh, did you verify that it is not a JMeter problem. Your

Re: Sending a POST request and handling the response from a module

2007-02-23 Thread Joachim Zobel
Am Donnerstag, den 22.02.2007, 17:15 -0700 schrieb David Wortham: My existing POST code was borrowed from ApacheBench (ab.c), which does not appear to handle any of the response and is now much less useful to me. Does anyone know of code that will allow me to both POST request and handle the

Re: Some question about adding some independent module or middleware to intercept HTTP requests

2007-02-22 Thread Joachim Zobel
Am Donnerstag, den 22.02.2007, 01:56 -0800 schrieb Erica Zhang: requests to Apache HTTP Server (or other kinds of server. I do not want this module or middleware to be limited special platform.). Then the web Then this is not the right place to ask (beyond general http advice). Apache

Re: Interaction between modules....

2007-02-18 Thread Joachim Zobel
Am Sonntag, den 18.02.2007, 12:12 +0530 schrieb Devender Reddy: So, it would be great, if you can let me know the equivalent functanality of filters in apache 1.3. Filters are actually _the_ reason to use 2. The best thing you can do is read the POST parameters during an early request phase an

Re: Interaction between modules....

2007-02-16 Thread Joachim Zobel
Am Freitag, den 16.02.2007, 16:03 +0530 schrieb Devender Reddy: Now I want to pass this DATA(response+hide) to PHP module to the server X( where my module is sitting). in one way, I can say, once my module gets some response, then how do we pass this response to the PHP module. This looks

Re: 3.0 - Proposed Goals

2007-02-15 Thread Joachim Zobel
Am Dienstag, den 13.02.2007, 23:33 -0800 schrieb Paul Querna: - Build a cleaner configuration system, enabling runtime reconfiguration. Today's system basically requires a complete restart of everything to change configurations. I would like to move to an internal DOM like representation of

Re: 3.0 - Proposed Goals

2007-02-15 Thread Joachim Zobel
Am Donnerstag, den 15.02.2007, 11:51 -0800 schrieb Paul Querna: XML isn't important. But validation is. And it would be really nice to have a uniqueness constraint for the configuation that makes shure certain settings are only done once. An error message is really preferrable to a silent

Re: How do I find the current request

2007-01-25 Thread Joachim Zobel
Am Samstag, den 20.01.2007, 09:55 +0100 schrieb Joachim Zobel: To plug libxml2 into apache memory handling I need to provide it with global malloc and free functions. Assuming I am in an output filter, how can my malloc find the way to the current request_rec? Inbetween I have found

How do I find the current request

2007-01-21 Thread Joachim Zobel
Hi. To plug libxml2 into apache memory handling I need to provide it with global malloc and free functions. Assuming I am in an output filter, how can my malloc find the way to the current request_rec? (Life is actually more complicated, but if I can get my hands on the current request Il find

Re: splitting a string...

2007-01-02 Thread Joachim Zobel
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 this, but you probably have a

Re: splitting a string...

2007-01-01 Thread Joachim Zobel
Am Sonntag, den 31.12.2006, 19:02 -0700 schrieb Joe Lewis: ... split bucket brigades ... You mean splitting buckets, not brigades, do you? To avoid a misunderstanding here are the relevant API functions. From apr_buckets.h

Re: How do normal developers debug apachemodules?

2006-12-05 Thread Joachim Zobel
Am Dienstag, den 05.12.2006, 15:46 +0530 schrieb Manish Chakravarty: The module has gotten pretty complex. I am using visual studio 2003 to develop it. I know of no possible way to debug it. Can someone please give some pointers/tips? would gdb on GNU/LInux be a better choice? I am using

Re: One character per brigade?

2006-11-29 Thread Joachim Zobel
Am Mittwoch, den 29.11.2006, 15:31 -0600 schrieb Tess Flynn: How am I supposed to tell when I've read the last brigade? The last bucket is an EOS bucket. Sincerely, Joachim

Re: How the PHP works?

2006-11-13 Thread Joachim Zobel
Am Montag, den 13.11.2006, 21:39 +0100 schrieb Toni Pizà: I will try to read the code of mod_php in ordrer to understand how the CGI relates the server web and the php interpreter! If you want to look at a webservers source code to understand what a webserver does, apache is too complex. Try a

Re: Are you shure about this?

2006-11-11 Thread Joachim Zobel
Am Freitag, den 10.11.2006, 15:34 -0800 schrieb Paul Querna: Joachim Zobel wrote: Writing apache modules? Nope. Right in the core. I would suspect it will work best as a 'logic' control type thing, driving how a request is handled, and handling complex configuration logic. So you want

Is ap_pass_brigade sychronous

2006-11-08 Thread Joachim Zobel
Hi. I would like to know if ap_pass_brigade is and will remain synchronous on all mpms. Can I assume that all memory used by the passed buckets can be freed after calling ap_pass_brigade? Thx, Joachim

Re: Data Structure Serialization - debugging

2006-11-02 Thread Joachim Zobel
Am Donnerstag, den 02.11.2006, 12:07 -0700 schrieb David Wortham: Any ideas for serialization or opening another file? Or even just debugging tips in general? Apache seems like a difficult environment to debug in Just write a good trace log (with log level APR_DEBUG). If that is of

Re: Data Structure Serialization

2006-11-02 Thread Joachim Zobel
Am Donnerstag, den 02.11.2006, 12:07 -0700 schrieb David Wortham: I have one file that opens in a given function. I need to open another file and close it about the same time: just before the end of the same function. I copy-pasted the code that correctly opens the first file but I am not

Re: How to increase the size of the apache array manually?

2006-10-30 Thread Joachim Zobel
Am Montag, den 30.10.2006, 18:42 +0530 schrieb Manish Chakravarty: Hi all, I am developing a module on Apache 1.3. Can someone please tell me how to increase the size of an Apache array manually? Do i manually increment the nelts field? If this works as on 2 you simply have to call

Re: apr_dbd_mysql for apache2.2

2006-10-29 Thread Joachim Zobel
Am Sonntag, den 29.10.2006, 14:39 +1000 schrieb Mark Constable: *** glibc detected *** /usr/sbin/httpd: double free or corruption (!prev): 0x08278360 *** This is often mention as the dreaded Glibc has from a certain version on treatet double free as a fatal error. I remember lots of apps

Re: Coding style

2006-10-02 Thread Joachim Zobel
Am Montag, den 02.10.2006, 22:39 +0200 schrieb Ruediger Pluem: if (((rc = apr_procattr_create(procattr, p)) == APR_SUCCESS) ((rc = apr_procattr_cmdtype_set(procattr, APR_SHELLCMD_ENV)) == APR_SUCCESS) ((rc =

Re: Coding style

2006-10-02 Thread Joachim Zobel
Am Montag, den 02.10.2006, 19:56 +0100 schrieb Nick Kew: Can I suggest adopting this as a guideline for new code, to avoid this kind of bug? Is there an apache coding style guide? Thx, Joachim

Re: Add a [modules-dev] subject prefix?

2006-09-27 Thread Joachim Zobel
Am Dienstag, den 26.09.2006, 11:54 -0500 schrieb William A. Rowe, Jr.: So thoughts? +/- to adding [modules-dev] or [EMAIL PROTECTED] to our subject headers? - Sincerely, Joachim

Re: There should be a filter spec

2006-09-18 Thread Joachim Zobel
Am Donnerstag, den 01.06.2006, 16:36 +0200 schrieb Plüm, Rüdiger, VF EITO: As far as I remember there had been also a discussion on who owns a brigade. So who has to call / should not call apr_brigade_destroy / apr_brigade_cleanup in the filter chain. I think rules for this would be also

Re: ap_core_output_filter returns APR_SUCCESS on error

2006-08-26 Thread Joachim Zobel
Am Freitag, den 25.08.2006, 23:22 +0200 schrieb Ruediger Pluem: c-aborted is set to 1 in this case. Just check for it once you return from ap_pass_brigade. Thx. For the convienience of those who google: rv = ap_pass_brigade(f-next, sctx-bb) ; if (rv != APR_SUCCESS ||

Brigades and threads

2006-06-22 Thread Joachim Zobel
Hi. Can I assume (no matter what mpm) that two brigades for the same request will never be processed at the same time? I am using request pool memory for buffering in filters, and this will otherwise fail. Thx, Joachim

sax buckets

2006-06-14 Thread Joachim Zobel
Hi. It might make sense to send sax events as buckets up the filter chain. Can a module implement an additional bucket type? Thx, Joachim

Re: sax buckets

2006-06-14 Thread Joachim Zobel
Am Mittwoch, den 14.06.2006, 20:03 +0100 schrieb Nick Kew: On Wednesday 14 June 2006 18:09, Joachim Zobel wrote: It might make sense to send sax events as buckets up the filter chain. Can a module implement an additional bucket type? Yes, of course a module can! This is good news. I'll

Re: There should be a filter spec

2006-06-05 Thread Joachim Zobel
Am Donnerstag, den 01.06.2006, 16:36 +0200 schrieb Plüm, Rüdiger, VF EITO: As far as I remember there had been also a discussion on who owns a brigade. So who has to call / should not call apr_brigade_destroy / apr_brigade_cleanup in the filter chain. I think rules for this would be also

There should be a filter spec

2006-05-26 Thread Joachim Zobel
Hi. I need a specification that tells me what a filter must/should and must not/should not do. Is there something alike? My actual problem is that I have a filter that if nothing was modified drops all content, sets f-r-status to 304 and sends an eos bucket. This works. If I pass the output

Re: It's that time of the year again

2006-04-17 Thread Joachim Zobel
On Mon, 17 Apr 2006 16:13:06 +1000 Ian Holsman [EMAIL PROTECTED] wrote: so.. if there is any niggly things or cool projects you haven't got the time to do yourself, Yeah, my no 1. wish is a mod_tal (the existing sourceforge project was abandomed before start) that: 1. acts as an output

Re: html parsing filter

2006-03-30 Thread Joachim Zobel
Am Mittwoch, den 29.03.2006, 00:16 -0500 schrieb Miso G.: And as far as caching those images/links goes, I need them to be pre-loaded for the user that is viewing the html page, not the other users after him. Sort of like pre-fetching the links in advance, in case the user decides to visit

update_etag?

2006-03-14 Thread Joachim Zobel
Hi. I am working on a database publishing module (mod_sqil) that transforms (as an output filter) SQL (with a bit of XML markup) into xmlified database content. I have found out how to use update_mtime from within a filter to play the 304 game (Thanks for the filter_init handler). Since database

Re: Module Design Question

2006-03-02 Thread Joachim Zobel
Am Mittwoch, den 01.03.2006, 21:28 + schrieb Nick Kew: On Wednesday 01 March 2006 20:20, Joachim Zobel wrote: The obvious test: static int xmlns_filter_init_test(ap_filter_t *f) { ap_update_mtime(f-r, 1101151837); ap_set_last_modified(f-r); return OK; } I've never

Module Design Question

2006-03-01 Thread Joachim Zobel
Hi. I am thinking about the design of a module that executes SQL queries (with a bit of XML to tell it what the binds, fields and params are) and outputs database content as XML. The problem is that I want two things and it seems pretty hard to get both. 1. I want the module to act as an output

Re: Module Design Question

2006-03-01 Thread Joachim Zobel
Am Mittwoch, den 01.03.2006, 19:19 + schrieb Nick Kew: Huh? Of course you can - indeed sometimes must - manipulate headers in a filter! Just so long as you do so before passing anything down the chain. What are you trying to do that's a problem? The obvious test: static int