Some Guy wrote:
Hi all,
Is there any facility in the Apache libs that allows module developers to
act as a client? If not, I'll just use something like curl (or raw
sockets), but wanted to know if there was an Apache way to do this.
You'll have to co-opt a http client library or roll your ow
Andrej van der Zee wrote:
Hi William,
LoadFile
Saving on ink aren't you ;) Thanks for the advise, I will give it a go soon.
Just one question you might be able to answer. From the documentation
it looks like LoadFile is used to add additional code. In my case, I
need to override existing fu
Jaysingh Samuel wrote:
Eric,
Thanks for your reply, let me make my question clear..
I have one Custom module, which i want to reload every 10mins, when i give graceful then it reloads all the modules and also the config directives. Because of this i want to have an option in the httpd say "reloa
Andrej van der Zee wrote:
Hi,
Thanks, that helps!
Since I am developing my modules in C++, I think I should be using this one:
apr_status_t apr_thread_data_set( void * data,
const char *key,
apr_status_t(*)(void *) cleanup,
Andrej van der Zee wrote:
Hi,
Thanks.
Yes. create_connection() is the first hook run as part of request
processing, a delay in create_connection() will result in a delay in HTTP
processing.
That's too bad. I guess I have to hack this into the MPM then.
One more question, what would be the
Andrej van der Zee wrote:
Hi,
Thanks for your reply.
AFAIK there's no support for such thing in apache. Have a look
yourself in server/mpm/worker/worker.c.
You can hook create_connection (the first hook offered by apache in a
thread after its creation). However, create_connection is called
se
Sorin Manolache wrote:
2009/3/16 Arturo 'Buanzo' Busleiman :
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi! From within my module, I'd like to make an HTTP request from another HTTP
server, get something
from it, and use the returned information. What's the best way to do this?
You can
Andrej van der Zee wrote:
Hi,
Thanks for your comments. See below...
Worker mpm is a multithreaded, multiprocess mpm. Multiple child processes
host multiple worker threads that run your module code.
If your module services 2 concurrent requests in 2 different threads in the
same process and b
Andrej van der Zee wrote:
Hi Saju,
For the worker mpm, both cross thread and cross process protection will be
needed. apr_proc_mutex.h family supplies cross-process protection,
apr_thread_mutex.h provides cross thread protection.
You "locking" method would be a wrapper method that first obtain
Sorin Manolache wrote:
On Wed, Mar 11, 2009 at 02:08, Andrej van der Zee
wrote:
Hi,
I need to modify Apache and run one custom background thread. In addition,
my custom modules have to be able to share a data structure with this
background thread. Did anybody do this before? Is there an exampl
Supun Kamburugamuva wrote:
On Mon, Mar 9, 2009 at 3:24 PM, Saju Pillai wrote:
Supun Kamburugamuva wrote:
Thanks for the quick reply. I have found this Event MPM for httpd. Is it
possible to use this for my scenario?
http://httpd.apache.org/docs/2.2/mod/event.html
Only from reading the
Supun Kamburugamuva wrote:
Thanks for the quick reply. I have found this Event MPM for httpd. Is it
possible to use this for my scenario?
http://httpd.apache.org/docs/2.2/mod/event.html
Only from reading the description, I would say that you will need to
extend the mpm to meet your needs. Yo
Supun Kamburugamuva wrote:
Hi all,
I'm writing a httpd module. This module is a content generator.
When a request comes to this module it has to forward it to a remote
machine. In that sense this module makes httpd acts like a proxy server.
Talking to a remote machine can take some time and if
Frank Meier wrote:
thanks for your replies, I tried the use of bucketbrigades as Chris
Kukuchka suggested. Unfortunately this lead to the same behaviour.
I also tried the *hack* approach (accessing the socket directly), where
I had the problem of getting to the socket itself. I didn't unde
Frank Meier wrote:
Hi
I'm working with a proprietary apache module which communicates (through
a socket) with another backend application (I have the C source code of
the module). I've now found out, when the client closes the http
connection during a request, the module does not "see" that the c
fka...@googlemail.com wrote:
fka...@googlemail.com:
some of the initialization tasks of my module must not be
done repeatedly with each spawned server process.
To be more precise: There is only *one* vhost/configuration
here, however, due to the mpm settings (see below) apache
launches *sever
fka...@googlemail.com wrote:
Hi all,
some of the initialization tasks of my module must not be
done repeatedly with each spawned server process.
The post_config hook may help you.
Currently I init my module by ap_hook_child_init() and do
cleaning up by apr_pool_cleanup_register(), so each s
On 22-Dec-08, at 6:49 PM, Andrej van der Zee wrote:
Hi,
You hook child_init (ap_hook_child_init) and store your data in
global
variables that are accessed by post_read_request and log_transaction.
BTW, in a worker-MPM, is child_init executed for every created
worker-thread? Or is it pe
2008/12/13 Saju Pillai :
>
> On 13-Dec-08, at 1:02 PM, Mark Harrison wrote:
>
>> Sam Carleton wrote:
>>>
>>> I am trying to use apr_strtok() for the first time. I am taking the
>>> add_cookie() function from mod_rewrite.c, no changes. I
On 13-Dec-08, at 1:02 PM, Mark Harrison wrote:
Sam Carleton wrote:
I am trying to use apr_strtok() for the first time. I am taking the
add_cookie() function from mod_rewrite.c, no changes. I am passing
in
the string, variable 's':
KioskViewingStation:KVS_VERSION::5
The first line that exe
Greetings,
In an apache 2.2 module, how can i retrieve all of it's per_dir
config structures in the post_config hook ? Holding an explicit
reference to each per_dir config structure (when it is allocated)
within the module is possible but is slightly ugly. Is there a
recommended way to d
On 10/05/07, Marc Dostie <[EMAIL PROTECTED]> wrote:
Anyone know what the roadmap looks like for the Event MPM?
I'm interested in playing with it but I need mod_ssl which is a known
outage.
mod_ssl doesn't play well with Event MPM because of request pipelining ?
-srp
On 10/05/07, David Wortham <[EMAIL PROTECTED]> wrote:
Sam,
I knew I missed something. There is a C-string containing the local_ip of
the server in the conn_rec struct.
I believe the access from a request_rec would be r->connection->local_ip
There can still be cases where comparing ip's won'
err - asking obvious question but .. Your LogLevel is set to debug right ?
-srp
On 06/05/07, Joachim Zobel <[EMAIL PROTECTED]> wrote:
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)
> > {
> >
Hi,
In 2.0 and/or 2.2 can a output filter trigger the equivalent of an
ap_internal_redirect() ?
I am hoping to trap a specific status code that a content handler may
return and fire an internal redirect so as to cause another content
handler to trigger.
I know how to do this using ErrorDocumen
On 20/04/07, Joe Lewis <[EMAIL PROTECTED]> wrote:
Michael B Allen wrote:
> Hi Saju,
>
> Actually I'm not sure this is my problem. I have tested my PHP extension
> on numerous platforms and I have only ever seen the PHP extension
> initialization / deinitialization routines run once for each resta
Greetings,
I am attempting to write a apache 2.2 module that has per
dir/location directives. I need to examine all the per dir/location
module_config's for this mod.
Can I do something like ...
for (server = base_server; server; server = server->next) {
conf = ap_get_module_config(server->loo
27 matches
Mail list logo