Re: Debugging a module that works in homebrew's httpd24 but not OSX's preinstalled one

2016-01-11 Thread Jim Jagielski
If the module is not using the exact same APR lib (ie, 1.4.x instead of 1.5.x) then you could easily get this to happen. > On Jan 11, 2016, at 2:38 PM, Andy Li wrote: > > Hi, > > I'm developing (updating) mod_neko , a > module that let users

Re: apr_shm_create succeeds then fails on Mac OS X

2015-12-28 Thread Jim Jagielski
> SHMs are created with apr_shm_create(). > > Regards, > Yann. > > On Mon, Dec 28, 2015 at 2:56 PM, Jim Jagielski <j...@jagunet.com> wrote: >> Looks like the module is not cleaning up and removing the shared memory >> segment during a shutdown and/or restart. >> >>&

Re: apr_shm_create succeeds then fails on Mac OS X

2015-12-28 Thread Jim Jagielski
100% /Network/Servers >> /dev/disk0s5 442Gi 353Gi 89Gi80% 92513182 >> 23266901 80% /Volumes/Shared >> localhost:/18XTcmWVPTgvjvav7dUs5F 184Gi 184Gi0Bi 100%0 >> 0 100% /Volumes/MobileBackups >> >>

Re: apr_shm_create succeeds then fails on Mac OS X

2015-12-27 Thread Jim Jagielski
Are you *sure* that /tmp really has enough space? > On Dec 27, 2015, at 8:47 AM, Sorin Manolache wrote: > > On 2015-12-25 19:36, Tapple Gao wrote: >> Hi. I’m trying to get mod_tile working on the builtin apache in Mac OS X El >> Capitan. I am running into a problem with

Re: Apache Buckets and Brigade

2013-05-01 Thread Jim Jagielski
How is that different from mod_substitute and/or mod_sed? On May 1, 2013, at 9:22 AM, Joshua Marantz jmara...@google.com wrote: I have a crazy idea for you. Maybe this is overkill but this sounds like it'd be natural to add to mod_pagespeed http://modpagespeed.com as a new filter. Here's

Re: lbmethod and TCP header

2013-01-09 Thread Jim Jagielski
httpd and APR don't provide that data... For httpd, it's all at the protocol layer (HTTP). On Jan 7, 2013, at 1:10 PM, Ruben Campos rcad...@gmail.com wrote: Hello everybody, I'm part of a project that involves creating a new loadbalancer method for the proxy module's balancer. Following

Re: Help with apr mutex

2011-02-28 Thread Jim Jagielski
Why not check the return status of the lock and unlock calls?? On Feb 28, 2011, at 12:26 PM, Simone Caruso wrote: Hi all, I wrote a simple cache inside my module with apr_shm and apr_rmm, but I have problems with apr mutex... I have this peace of code: static apr_global_mutex_t *mtx

Re: I don't understand apr_array_push

2011-01-26 Thread Jim Jagielski
On Jan 26, 2011, at 10:28 AM, Simone Caruso wrote: Now i need to read the array (i read mod_alias.c): for(k = 0; k reqc-aliases-nelts ; k++){ alias = (alias_t *)reqc-aliases-elts[k]; isalias = alias_matches(r-uri, alias-src);

Re: Shared memory ?

2010-11-15 Thread Jim Jagielski
With 2.3/trunk you have mod_socache and/or mod_slotmem (with shared memory). socache implements a shared memory based expiring cache and slotmem is a scoreboard-like shared memory impl. On Nov 15, 2010, at 11:12 AM, Rémy Sanchez wrote: Hi, I'm coding a module to somehow replace/complement

Re: Unit testing

2008-12-12 Thread Jim Jagielski
Look at the httpd-test/framework package: http://svn.apache.org/viewvc/httpd/test/framework/trunk/ On Dec 12, 2008, at 8:54 AM, Kevac Marko wrote: Hello. What is the best way to write unit tests for C apache modules? Maybe some frameworks? -- С уважением, Кевац Марко Sincerely

Re: Howto implement a new algorithm scheduler in mod_proxy_balancer

2008-10-22 Thread Jim Jagielski
it out via svn. Regards, Rainer Jim Jagielski wrote: Not sure what the question is... is it how to test your algo or how to implement it? There is a quick-and-dirty example submodule in trunk (under modules/ proxy/examples) that give some basic overview. On Oct 20, 2008, at 10:07 PM