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
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
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
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
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
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
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
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
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.
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
>
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
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
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
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
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
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
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.
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.
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.
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
> 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.
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 )
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
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
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 =~
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.
- 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
>
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
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
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
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
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
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
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
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&
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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/
-
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:
>
>>
Hello!
New message, please read <http://lesparterresenkit.fr/been.php?v>
Mike Baroukh
Hey!
New message, please read <http://kitchendesignvirginia.com/meaning.php?5wcs>
Mike Marchywka
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.
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.
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
59 matches
Mail list logo