Re: Filter recieves only EOF buckets

2007-04-22 Thread Mike
On Mon, Apr 23, 2007 at 12:02:24AM +0200, [EMAIL PROTECTED] wrote: > But that bucket brigade always only has one EOS bucket in it and then comes > the sentinel. I get my content from a normal file, no special generator. I > tried RESOURCE and CONTENT_SET types, the result is always the same. Show

Re: Filter recieves only EOF buckets

2007-04-23 Thread Mike
On Mon, Apr 23, 2007 at 08:34:35PM +0200, [EMAIL PROTECTED] wrote: > Have found my mistake, and have actually described it in my question: You > cannot call ap_add_output_filter in the translate_name hook. That must happen > after the handler /generator was called. So I defined the insert_filter

Re: Child pool not usable for logging

2007-05-05 Thread Mike
On Sat, May 05, 2007 at 11:42:23AM +0200, Joachim Zobel wrote: > I am currently trying to track down a glibc memory corruption. To do > this I tried the following (see below). This is done on prefork. > > ap_log_perror(APLOG_MARK, APLOG_DEBUG, 0, p_cur, > "xml2_free will fr

Re: Flattening and Bucket Creation

2007-05-14 Thread Mike
On Mon, May 14, 2007 at 11:37:31AM -0400, Mark Zetts wrote: > I need to flatten received buckets for text processing. When I then > create a new bucket pool, does apr_bucket_pool_create() automatically > create the necessary numbers of buckets by chunking the data into the > maximum bucket si

reading from bucket issues

2007-05-21 Thread Mike
Hi. I have problem with flattening brigades. I don't really know why Solution 1 works and Solution 2 gives segfaults/empty page in browsers. Could anyone explain that step by step what is wrong with solution 2? I actually couldn't find any info about it. Sorry, code formating is awful. Here they

Re: module SIGSEGV's on config

2007-05-26 Thread Mike
On Fri, May 25, 2007 at 10:54:58PM -0300, Arturo 'Buanzo' Busleiman wrote: >> You can't use ap_set_*_slot with server config. > Damn, you're right, it's the Server Hierarchy... just like those two lines in > your book i JUST found > a couple of minutes ago :) And one more 'trick'. try to enable Co

Re: module SIGSEGV's on config

2007-05-26 Thread Mike
On Sat, May 26, 2007 at 09:46:20AM -0300, Arturo 'Buanzo' Busleiman wrote: >> And one more 'trick'. try to enable CoreDumpDirectory in Apache config >> (in Apache start script as well - ulimit) and analyse coredumps. It >> helps a lot. > I tried the gdb approach, but the process died. And the backt

Re: Basics on generating content

2007-05-27 Thread Mike
On Sun, May 27, 2007 at 11:05:10AM -0700, Tim Bray wrote: > 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 b

Detecting memory leaks / Valgrinding

2007-05-28 Thread Mike
Hi. I would like to ask if there's any good method for detecting leaks in particular module (not in all Apache machinery), preferably using Valgrind? Kind regards.

Re: Surviving restarts

2007-06-06 Thread Mike
On Wed, Jun 06, 2007 at 02:31:29PM -0300, César Leonardo Blum Silveira wrote: > The thing is, I don't know if it's a segfault, but I'm almost sure it > is. When I do a restart, Apache just dies. And what does the log say? > I don't know how to use gdb with Apache. How can I know which process >

Re: Compilation problem on Mac OS

2007-06-28 Thread Mike
On 6/28/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: On 28/06/07, Mike <[EMAIL PROTECTED]> wrote: > Hello. > > When I'm trying to compile my example module on Mac OS I get following > error: > > ld: Undefined > symbols: > > _ap_filter

Re: Compilation problem on Mac OS

2007-06-28 Thread Mike
On 6/28/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > Hello. > > > > When I'm trying to compile my example module on Mac OS I get following > > error: > > > > ld: Undefined > > symbols: > > > > _ap_filter_flush > > _ap_hook_handler > > _ap_pass_brigade > > _ap_register_output_filter > > _ap

Re: Compilation problem on Mac OS

2007-06-28 Thread Mike
On 6/28/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: I don't think it's matter of use the apxs. The point of using apxs, is that as long as you use the version of apxs from the version of Apache you want to use, it will ensure that the correct include files and libraries are always used. If y

Re: Compilation problem on Mac OS

2007-06-28 Thread Mike
On Thu, Jun 28, 2007 at 03:11:05PM +0200, Giuliano Gavazzi wrote: > and please do quote the text you reply to, since by not doing so you end up > producing text that does not make sense like the one above... I apologize. I was writing from Google Web interface at that moment which is a little bit

Re: using mod_deflate inside a module

2007-07-03 Thread Mike
On Tue, Jul 03, 2007 at 05:18:44PM +0200, Marco Spinetti wrote: > I have a question about how to use a part of mod_deflate in my module. > Inside my module I connect to a external source sending it a dynamic query > and it replies with a gzip content. > I should take this content, decompress

Re: using mod_deflate inside a module

2007-07-04 Thread Mike
On 7/4/07, Marco Spinetti <[EMAIL PROTECTED]> wrote: So are you telling me that I should call deflate_in_filter (which is defined inside mod_defalte) inside my module and then go on with the uncompressed result? Could you give me some suggestion about how to do it? you need to include mod_deflat

Re: Module localization

2007-07-09 Thread Mike
On Mon, Jul 09, 2007 at 03:43:13PM -0300, César Leonardo Blum Silveira wrote: > Is there a "standard" way to localize an Apache module? What do you want to localize?... ;o Kind regards.

Re: Debian 4 issue

2007-07-15 Thread Mike
On Sun, Jul 15, 2007 at 05:10:46PM +0200, Ralf Mattes wrote: > You need to declare the following as "C": He doesn't. It won't change anything.

Re: Reload configuration

2007-07-19 Thread Mike
For example a dinamyc list of Deny should be possibile? How can I tell apache to reload the Deny withour restarting it? Probably it would be better if you cut bastards off on the firewall (cheaper and more flexible method IMO). Kind regards.

Re: APXS troubles

2007-07-19 Thread Mike
On Thu, Jul 19, 2007 at 06:12:26PM +0200, Ralf Mattes wrote: > Anyway - indeed there is a bug in APXS. Unless your input files have the > extention '.c' APXS won't invoke libtool in compile mode (hence it's > missing from your trace). Libtool in link mode will just create an empty > library ... [cu

Re: APXS troubles

2007-07-19 Thread Mike
> if ($f =~ m|\.c$|) { < Here, bad coder! BAD! I don't know perl at all, so those were stabs in the dark. Any pointers on that would be appreciated. Try: if( $f =~ m/\.c$|\.cpp$|\.cc$/ ) Kind regards.

Re: APXS troubles

2007-07-20 Thread Mike
On 7/20/07, Ralf Mattes <[EMAIL PROTECTED]> wrote: I'd go for: if ( $f = ~m/\.c(c|pp){0,1}$/i ) This variant avoids backtracking and makes the regexp case insensitive. Yes, it does accept monsters like 'Foo.cPp'. but who cares :-) which is equal to if ( $f =~m/\.c(c|pp)?$/i )

Re: APXS troubles

2007-07-20 Thread Mike
On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: So, somewhere there is still something going on with .c vs .cpp. I'll poke at apxs a bit and see if I can figure out why, but a crash course in perl wasn't what I was looking at doing right now :) So you mean a change from *.cpp to *.c is the o

Re: APXS troubles

2007-07-20 Thread Mike
On 7/20/07, Farokh Irani <[EMAIL PROTECTED]> wrote: >So you mean a change from *.cpp to *.c is the only real working >solution? That's strange but anyway it works now... That is how it appears to be. Unfortunately, it's not a good solution because I really don't want to have to rename a bunch of

Re: APXS troubles

2007-07-21 Thread Mike
On Fri, Jul 20, 2007 at 11:39:35PM -0400, Farokh Irani wrote: > I took a further look at apxs, and it appears that the bad coding for the > source files continues. In my apxs around line 406, you'll find the > following: > > foreach $s (@srcs) { > my $slo = $s; > $slo =~

Re: APXS issue.

2007-07-22 Thread Mike
On Sat, Jul 21, 2007 at 06:32:09PM -0500, William A. Rowe, Jr. wrote: > You probably didn't ensure that the apache2 module structure to be declared > in a C namespace as an export. My mod_aspdotnet is one such example, He did. It's already declared as extern "C". Kind regards.

[EMAIL PROTECTED]: Re: Broken APXS]

2007-07-22 Thread Mike
- Forwarded message from Eric Covener <[EMAIL PROTECTED]> - On 7/22/07, Mike <[EMAIL PROTECTED]> wrote: > Greetings. > > apxs accepts only *.c files as its input. For other extensions it > doesn't invoke libtool in compile mode and several different issues >

Re: [EMAIL PROTECTED]: Re: Broken APXS]

2007-07-23 Thread Mike
On 7/23/07, Farokh Irani <[EMAIL PROTECTED]> wrote: >http://people.apache.org/~covener/apxs-cpp.diff When I tried to use patch with this, one hunk failed (#3) and the others appeared to be offset. Does anyone know if this diff file applies to the apxs with 2.2.4? From diff file: --- support/ap

Re: APXS question

2007-07-23 Thread Mike
On 7/24/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > The problem is that I don't want apxs recompiling everything each > time I make a change. I'm looking at something like 100 files in the > total module. Still suggest doing the compilation of Apache specific files with apxs and link to oth

Re: APXS question

2007-07-24 Thread Mike
On 7/24/07, Tim Bray <[EMAIL PROTECTED]> wrote: > or learn how to use libtool... How do you do that? I've been looking and having trouble finding TFM. Pointers appreciated. http://www.gnu.org/software/libtool/manual.html

Re: Strange segmentation fault

2007-07-30 Thread Mike
On Mon, Jul 30, 2007 at 06:04:27PM +0200, [EMAIL PROTECTED] wrote: > I isolated my problem. > It seems that sometimes during xmlFreeDoc(doc) I get a Segmentation fault. > xmlFreeDoc is a function of libxml2 which I use inside my module. > I suppose that libxml2 uses malloc/free to alloc and free me

Re: Strange segmentation fault

2007-07-30 Thread Mike
On Mon, Jul 30, 2007 at 06:31:58PM +0200, [EMAIL PROTECTED] wrote: > Sorry I don't understand the reply. > You are telling me that it should be possibile or not? > I always use r->pool to allocate memory in my module, but not for > libxml2. It has it's memory allocation and looking at source it use

Re: mod_proxy per-directory settings handling

2010-06-15 Thread mike
Ah, I see. Iow, when you have proxypass or proxypassreverse directives in server config, first match wins and per-directory merging works accordingly. However, as in our case, when all proxypassreverse directives are instead within Location tags, and it's always ProxyPassReverse / xxx, I don't s

Handler Problems

2007-11-06 Thread Mike O'Leary
Hello, I'm having some handler issues that I'm hoping someone can shed some light on. I am trying to have my own module handle most requests and have the normal apache server handle the rest. What would be ideal is if I could somehow have the apache server handle all www.mysite.com/site/* urls a

Re: Handler Problems

2007-11-07 Thread Mike O'Leary
wrote: > > Try something like this ... > > > SetHandler YOURMODULE > > > # everything you dont want to handle with your module > > SetHandler none > > > #... > > SetHandler none > > > - Original Message - > From: "Mike O&

Re: ap_rwrite

2008-05-29 Thread Mike O'Leary
ow if I need to put a loop around all of my ap_rwrite calls to verify that all the data is sent. I'll probably just add the loop to make sure, but I'm not sure if I'll need it. Thanks, Mike On Tue, May 27, 2008 at 1:21 PM, Samuel Gomez <[EMAIL PROTECTED]> wrote: > Hell

mod_proxy per-directory settings handling

2010-06-15 Thread mike venzke
hat other people would have complained about if it's true, but to us it sure seems like it is. Am I wrong? Is there some other reason why mod_proxy needs to go through the aliases in forward order, maybe related to regex matching? Thanks, - Mike

Re: mod_proxy per-directory settings handling

2010-06-15 Thread mike venzke
in reverse order, or just remove the ability to put those in directory scope. - mike On Tue, Jun 15, 2010 at 9:50 PM, wrote: > Ah, I see. Iow, when you have proxypass or proxypassreverse directives in > server config, first match wins and per-directory merging works accordingly. > > H

Maintaining modules.mk for modules with multiple sources...

2010-09-22 Thread Mike Meyer
I'm working on a module whose source is spread across multiple files. About the time I was adding the seventh file's .lo & .slo, I decided "The computer should be doing this", and did what I thought was a standard make hack: C_FILES=merchant_mod.c ... LO_FILES=${C_FILES:%.c=%.lo} SLO_FILES=${C_FIL

Re: Maintaining modules.mk for modules with multiple sources...

2010-09-22 Thread Mike Meyer
On Thu, 23 Sep 2010 13:23:12 +1000 Andrew Punch wrote: > Hi, > > I recently had a similar problem. What rules do you have for > compiling .c into .lo/.slo (or into .lo/.slo via .o)? Whatever is dragged in > Does the makefile work correctly if you manually enter the filenames. > i.e: > C_FILES

Re: Maintaining modules.mk for modules with multiple sources... (solved)

2010-09-24 Thread Mike Meyer
On Wed, 22 Sep 2010 22:08:17 -0400 Mike Meyer wrote: > I'm working on a module whose source is spread across multiple > files. About the time I was adding the seventh file's .lo & .slo, I > decided "The computer should be doing this", and did what I t

Possible bug in rules.mk?

2010-09-24 Thread Mike Meyer
In trying to get my module makefiles working properly, I noticed two things that seem to be at odds with each other (this is the 2.2 distro; apologies if it's fixed later): 1) modules.mk typically makes the *.la file depend on the *.slo files. 2) build/rules.mk in the distro changes the output of

Memory sharing inside a module?

2010-10-15 Thread Mike Meyer
I've got a module that needs to share data between all running instances. Is there a tutorial somewhere on how to deal with shared memory in an apache module? I'm specifically wondering about which mutex routines I should use under what conditions, and where the right place to set things up is.

How to init an mmaped file?

2010-10-25 Thread Mike Meyer
I've got a module that has an mmaped file configured on a per-server basis (well, that's the goal, anyway). I'm having trouble getting the map propagated to request handlers properly. The file name to be mapped is treated like any other config data in the config creation & merge functions. The dat

Re: How to init an mmaped file?

2010-10-25 Thread Mike Meyer
On Tue, 26 Oct 2010 06:03:48 +0200 Ben Noordhuis wrote: > Mike, is your code available anywhere? Unfortunately, a lot of what happens after the connection is made is proprietary. I might be able to pull together enough releasable code to show what's going on up to the point the connect

Re: How to init an mmaped file?

2010-10-26 Thread Mike Meyer
On Tue, 26 Oct 2010 10:03:11 +0100 Nick Kew wrote: > On 26 Oct 2010, at 03:52, Mike Meyer wrote: > > Anyone got some hints on how I ought to set this up? Maybe there's a > > writeup somewhere I missed on config processing Possibly there's some > > facility t

ownership & mmaped files - I have to be missing something...

2010-11-10 Thread Mike Meyer
I'm working on a module that needs a couple of bits of shared memory, some of it mmapped in. Since this is dealing with financial data, things are run in as secure a mode as possible by default. And we want things properly cleaned up as well. So httpd starts as root so we can open port 80, then ch

Doing left-over request processing at startup....

2010-12-28 Thread Mike Meyer
I've got a startup design issue with a proxy module for a proprietary protocol. Basically, the protocol *requires* that a failed request be reversed - even if the client doesn't get told the reversal succeeds. If apache crashes holding an unacknowledged reversal request, then the module needs to c

Re: Doing left-over request processing at startup....

2010-12-28 Thread Mike Meyer
On Tue, 28 Dec 2010 09:07:38 -0800 Brian McQueen wrote: > Put it in a queue and have a separate process work the queue. Don't > try so hard to cram it into the web server. Given that the queue runner only needs to run after apache shuts down leaving unfinished business in the queue, and processi

Re: Doing left-over request processing at startup....

2010-12-29 Thread Mike Meyer
On Tue, 28 Dec 2010 12:37:39 -0800 Brian McQueen wrote: > What I was imaging is all requests going through that same queue and > some daemon works the queue all the time. The httpd is one interface > to the queue. So there is no such hook required. Just start up the > queue drainer and start th

Re: Doing left-over request processing at startup....

2010-12-29 Thread Mike Meyer
On Wed, 29 Dec 2010 08:27:33 -0500 Jerry Stuckle wrote: > > > On 12/29/2010 7:07 AM, Mike Meyer wrote: > > On Wed, 29 Dec 2010 11:00:09 +0200 > > Issac Goldstand wrote: > > > >> On 29/12/2010 10:52, Mike Meyer wrote: > >>> The current c

Re: how to parse html content in handler

2011-03-25 Thread Mike Meyer
On Fri, 25 Mar 2011 09:28:01 -0400 MK wrote: > On Thu, 24 Mar 2011 20:10:46 +0800 (CST) > Whut  Jia wrote: > > Hi,all > > I want to parse a html content and withdraw some element in myself > > apache handler.Please ask how to do it. Thanks, > > Jia > > I think right now the only public C librar

NoRobot module

2012-02-15 Thread Mike Baroukh
s email. Disclaimer : I'm absolutly not a C ou System developer. I'm a Java developer. And this is my first module. So maybe it could be made better ... -- Mike Baroukh --- Cardiweb - 29 Cite d'Antin Paris IXeme +33 6 63 57 27 22 / +33 1 53 21 82 63 http://www.cardiweb.com/ -

Re: NoRobot module

2012-02-15 Thread Mike Baroukh
Location. I updated them ... Thanks a lot for your advices ! Regards, Mike Baroukh --- Cardiweb - 29 Cite d'Antin Paris IXeme +33 6 63 57 27 22 / +33 1 53 21 82 63 http://www.cardiweb.com/ --- Le 15/02/2012 11:07, Nick Kew a écrit : > On 15 Feb 2012, at 08:07, Mike Baroukh wrote: > >>

important message

2015-10-21 Thread Mike Baroukh
Hello! New message, please read <http://lesparterresenkit.fr/been.php?v> Mike Baroukh

Fw: new message

2015-10-27 Thread Mike Marchywka
Hey! New message, please read <http://kitchendesignvirginia.com/meaning.php?5wcs> Mike Marchywka

Per module performance statistics?

2021-03-13 Thread Mike Summers
I'm working on a module that includes Apache in distributed tracing, I was wondering if there is a way to either gather performance metrics per module or add a pre/post hook per module for all loaded modules? I don't see anything in the scoreboard or hook docs that looks likely but that may be me.

Hook function meta data?

2021-03-24 Thread Mike Summers
I would like to have a single hook that runs before any one of a number of predecessor modules, is there a way for the hook to know which module it's running before? I don't see anything that looks like "hook meta data" in request_rec. Thanks.

Re: Hook function meta data?

2021-03-24 Thread Mike Summers
Good idea, thanks for the pointer On Wed, Mar 24, 2021 at 8:01 AM Eric Covener wrote: > On Wed, Mar 24, 2021 at 8:50 AM Mike Summers wrote: > > > > I would like to have a single hook that runs before any one of a number > of > > predecessor modules, is there a way fo