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

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

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

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