ap_core_output_filter returns APR_SUCCESS on error

2006-08-25 Thread Joachim Zobel
Hi. The core output filter is doing the following if the client unexpectedly closes the connection: if (rv != APR_SUCCESS) { ap_log_cerror(APLOG_MARK, APLOG_INFO, rv, c, "core_output_filter: writing data to the network"); ... cleanup /* The client ha

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

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 us

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

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

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 a

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 reaso

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 >

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

Are you shure about this?

2006-11-10 Thread Joachim Zobel
Hi. To my surprise several people just expressed the opinion that LUA should be part of the apache core in the long run. Could you explain for what purposes you want to do this? Writing apache modules? Also I would actually like to have a scripting language (for DOM manipultion in the libxml2 w

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

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

Re: help with filter example: null_filter...

2007-01-03 Thread Joachim Zobel
Am Mittwoch, den 03.01.2007, 16:08 -0800 schrieb Drew Bertola: > /* >* let's loop through the buckets passed to us. >*/ > for( e = APR_BRIGADE_FIRST(bb); >e != APR_BRIGADE_SENTINEL(bb); >e = APR_BUCKET_NEXT(e) ) > { for( e = APR_BRIGADE_FIRST(bb); e

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 er

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 f

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 o

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 overw

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 loo

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

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

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

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

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.

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

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? Sincerel

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

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 f

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

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_se

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 c

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 vis

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 f

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 th

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 us

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 ca

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

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.

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.

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 an

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 w

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

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 ava

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.

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 o

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 http://people.apache

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

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 http://www.heute-morgen.de

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