Re: Module reports busy workers

2009-08-26 Thread ricardo13
Yes, Mod_status shows in browser and writes in file. But mod_status writes in a file only when I stop apache. Ricardo Eric Covener wrote: > > On Wed, Aug 26, 2009 at 11:56 AM, ricardo13 > wrote: >> >> HI, >> >> How do I collect these informations in my mod

Re: Module reports busy workers

2009-08-26 Thread ricardo13
Hi Eric, Really. I modified mod_status and now, it is work and writing information in a file. I'm using open_logs and log_transaction hooks. Ricardo Eric Covener wrote: > > On Wed, Aug 26, 2009 at 8:47 AM, ricardo13 > wrote: >> >> Hi, >> >> I would

Re: Module reports busy workers

2009-08-26 Thread ricardo13
HI, How do I collect these informations in my module ? Ricardo ricardo13 wrote: > > Hi, > > I would like to implement a module that write information (busy worker and > idle worker) in file. > When request is processed, It writes information (ap_log_hook). > > I us

Module reports busy workers

2009-08-26 Thread ricardo13
Hi, I would like to implement a module that write information (busy worker and idle worker) in file. When request is processed, It writes information (ap_log_hook). I use mod_status to recovery these information. I don't know about use these information in my module. Ricardo -- View this mess

Doesn't process request - pre_connection hook

2009-08-10 Thread ricardo13
Hi, I did a module (mod_helloWorld.c) and I'm using pre_connection hook. My problem's .. How do I play out a connection in pre_connection hook?? For example, my module run the follow code: static int pre_connection(conn_rec *c, void csd) { if (IP = xxx.xxx.xxx.xxx) process request

worker_score structure

2009-07-29 Thread ricardo13
hi, I'm studying (little bit) mod_status and I saw worker_score object. My doubt's about worker_score->start_time and worker_score->stop_time fields. Is it processing time of request ?? Or, Is it life time of process (or thread) ?? Thank you Ricardo -- View this message in context: http://www

Re: Threads

2009-07-28 Thread ricardo13
cardo ricardo13 wrote: > > Hi, > > I'm using Worker MPM and would like to implement a module that uses 2 > threads and one array. > The first thread works adding requests in array. Just it. > And second thread schedules requests in array to processing. > > I u

Re: Threads

2009-07-28 Thread ricardo13
I didn't undestand about "talk to your thread standalone". What do I will talk for thread ? Thank you Ricardo Eric Covener wrote: > > On Tue, Jul 28, 2009 at 6:59 AM, ricardo13 > wrote: >> >> Hi, >> >> I'm using Worker MPM and would like to i

Threads

2009-07-28 Thread ricardo13
Hi, I'm using Worker MPM and would like to implement a module that uses 2 threads and one array. The first thread works adding requests in array. Just it. And second thread schedules requests in array to processing. I used post_config() hook for initialize structures and creates threads. What ho

Re: process initialisation in prefork-MPM

2009-07-27 Thread ricardo13
/* merge per-server config structures */ NULL,/* table of config file commands */ register_hooks /* register hooks */ }; I was using post_config, but now I changes for child_init. THank you Ricardo Joe Lewis-2 wrote: > > r

Re: process initialisation in prefork-MPM

2009-07-27 Thread ricardo13
HI, One question. How do I declare global variables ?? Thank you Ricardo Sorin Manolache wrote: > > On 2008-12-22, Andrej van der Zee wrote: >> Hi, >> >> I need to initialise some structures for each process (in prefork MPM) >> when it is created, and need to be able to access these struc

Re: Problems in my module

2009-07-26 Thread ricardo13
HI, Any idea ? Ricardo ricardo13 wrote: > > Hi, > > My idea's create queues for prioritize requests, so I would want handle > requests (perfectly as worker.c, but not handle sockets). > File worker.c adds and removes sockets in a queue. I want to create two > que

Problems in my module

2009-07-24 Thread ricardo13
Hi, My idea's create queues for prioritize requests, so I would want handle requests (perfectly as worker.c, but not handle sockets). File worker.c adds and removes sockets in a queue. I want to create two queues of request where there is 2 threads. One thread adds request, according classificati

Re: How do I debug a module ?

2009-07-24 Thread ricardo13
Hi, I thought that ap_process_request was a parameter for GDB. Sorry !! Then, Is ap_process_request a function in http_request.c ? Thank you Ricardo Tom Evans-3 wrote: > > On Fri, 2009-07-24 at 03:00 -0700, ricardo13 wrote: >> hi, >> >> The GDB session is very large.

Re: How do I debug a module ?

2009-07-24 Thread ricardo13
(r=0xa13c080) at http_request.c:276 276 if (ap_extended_status) (gdb) 259 { (gdb) My module calls mod_teste !!! Thank you Ricardo Tom Evans-3 wrote: > > On Thu, 2009-07-23 at 11:51 -0700, ricardo13 wrote: >> hi, >> >> Thank you for reply. >> &

Re: How do I debug a module ?

2009-07-23 Thread ricardo13
supp...@bettercgi.com > > Strongbox - The next generation in site security: > http://www.bettercgi.com/strongbox/ > > Throttlebox - Intelligent Bandwidth Control > http://www.bettercgi.com/throttlebox/ > > Strongbox / Throttlebox affiliate program: > http://www.be

How do I debug a module ?

2009-07-23 Thread ricardo13
Hi, I'm developing a module and need to debug. I'm having some problems. When I start Apache and acess the browser (localhost) doesn't show webpage. Thank you Ricardo -- View this message in context: http://www.nabble.com/How-do-I-debug-a-module---tp24630579p24630579.html Sent from the Apache

Re: How do I manipulate request_rec Object in worker.c

2009-07-23 Thread ricardo13
Hi, Can I insert image here ? Thank you Ricardo Tom Evans-3 wrote: > > On Thu, 2009-07-23 at 05:59 -0700, ricardo13 wrote: >> Hi, >> >> >> ricardo13 wrote: >> > >> > >> > >> > Eric Covener wrote: >> >> >

Re: How do I manipulate request_rec Object in worker.c

2009-07-23 Thread ricardo13
te: > > On Thu, 2009-07-23 at 05:59 -0700, ricardo13 wrote: >> Hi, >> >> >> ricardo13 wrote: >> > >> > >> > >> > Eric Covener wrote: >> >> >> >> On Sun, Jul 19, 2009 at 11:50 PM, ricardo13 >>

Re: How do I manipulate request_rec Object in worker.c

2009-07-23 Thread ricardo13
but manipulate requests object before the content generator. My idea's create a module that manages two arrays of requests. It adds and removes requests in array. Thank You Ricardo Eric Covener wrote: > > On Thu, Jul 23, 2009 at 8:59 AM, ricardo13 > wrote: >> >> H

Re: How do I manipulate request_rec Object in worker.c

2009-07-23 Thread ricardo13
Hi, ricardo13 wrote: > > > > Eric Covener wrote: >> >> On Sun, Jul 19, 2009 at 11:50 PM, ricardo13 >> wrote: >> >>>> One question for I undestand the sequence of hooks. >>>> Do It means that firstly worker.c processes sockets (

Re: How I pass a information ?

2009-07-22 Thread ricardo13
Hi, Eric Covener wrote: > > On Tue, Jul 21, 2009 at 10:17 AM, ricardo13 > wrote: >> >> Hi, >> >> I would like to konw how I pass information to other machine and between >> modules. >> >> For example: >> >> module A (mod_re

How I pass a information ?

2009-07-21 Thread ricardo13
Hi, I would like to konw how I pass information to other machine and between modules. For example: module A (mod_rewrite) in Server A forward request to module b (worker.c) in Server B. The modules are different. The module A sets a information and module only "get" that information. Remember,

How I pass a information ?

2009-07-21 Thread ricardo13
-- View this message in context: http://www.nabble.com/How-I-pass-a-information---tp24588474p24588474.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.

Re: How do I manipulate request_rec Object in worker.c

2009-07-21 Thread ricardo13
Eric Covener wrote: > > On Sun, Jul 19, 2009 at 11:50 PM, ricardo13 > wrote: > >>> One question for I undestand the sequence of hooks. >>> Do It means that firstly worker.c processes sockets (accept >>> connections), >>> after othe

Re: How do I manipulate request_rec Object in worker.c

2009-07-21 Thread ricardo13
Thank you Eric, Now, I undestood. Eric Covener wrote: > > On Sun, Jul 19, 2009 at 11:50 PM, ricardo13 > wrote: > >>> One question for I undestand the sequence of hooks. >>> Do It means that firstly worker.c processes sockets (accept >>> connections)

Re: How do I manipulate request_rec Object in worker.c

2009-07-19 Thread ricardo13
Eric Covener wrote: > > On Wed, Jul 15, 2009 at 7:39 AM, ricardo13 > wrote: >> >> hi all, >> >> I modified request_rec simply adding a field in request_rec. >> Now, I would like get this field in worker.c >> >> My doubt about this is becau

RE: How do I manipulate request_rec Object in worker.c

2009-07-15 Thread ricardo13
of questions. > > > > Thanks, > > Rick Houser > Auto-Owners Insurance > Systems Support > (517)703-2580 > > -Original Message- > From: ricardo13 [mailto:ricardoogra...@gmail.com] > Sent: Wednesday, July 15, 2009 10:23 AM > To: modules-d

Re: How do I manipulate request_rec Object in worker.c

2009-07-15 Thread ricardo13
gt; Ray Morris > supp...@bettercgi.com > > Strongbox - The next generation in site security: > http://www.bettercgi.com/strongbox/ > > Throttlebox - Intelligent Bandwidth Control > http://www.bettercgi.com/throttlebox/ > > Strongbox / Throttlebox affiliate program: > http://www.b

Re: How do I manipulate request_rec Object in worker.c

2009-07-15 Thread ricardo13
; Ray Morris > supp...@bettercgi.com > > Strongbox - The next generation in site security: > http://www.bettercgi.com/strongbox/ > > Throttlebox - Intelligent Bandwidth Control > http://www.bettercgi.com/throttlebox/ > > Strongbox / Throttlebox affiliate program: > ht

Re: How do I manipulate request_rec Object in worker.c

2009-07-15 Thread ricardo13
Eric Covener wrote: > > On Wed, Jul 15, 2009 at 7:39 AM, ricardo13 > wrote: >> >> hi all, >> >> I modified request_rec simply adding a field in request_rec. >> Now, I would like get this field in worker.c >> >> My doubt about this is becau

How do I manipulate request_rec Object in worker.c

2009-07-15 Thread ricardo13
hi all, I modified request_rec simply adding a field in request_rec. Now, I would like get this field in worker.c My doubt about this is because worker.c manipulates only sockets and doesn't request_rec object. How do I do this ?? Thank you Ricardo -- View this message in context: http://www

Re: Module that forward requests

2009-07-14 Thread ricardo13
Any suggestion ? Ricardo ricardo13 wrote: > > Hi all, > > This attached file is my proxy module. > > When I start APACHE write in log_error_log > Configuration Failed > > What's error ?? > > Thank you > Ricardo > > > ricardo13 wrote: &g

Re: Module that forward requests

2009-07-14 Thread ricardo13
Hi all, This attached file is my proxy module. When I start APACHE write in log_error_log Configuration Failed What's error ?? Thank you Ricardo ricardo13 wrote: > > hi, > > I'm newbie in APR and need develop a module that forward request to > cluster. The same in

Re: Module that forward requests

2009-07-14 Thread ricardo13
Eric Covener wrote: > > On Tue, Jul 14, 2009 at 7:37 AM, Tom Evans > wrote: >> On Tue, 2009-07-14 at 03:22 -0700, ricardo13 wrote: > >>> r->filename = apr_psprintf(r->pool, "%s://%s%s%s%s", "http", >>> "ip_machine", &

Re: Module that forward requests

2009-07-14 Thread ricardo13
Tom Evans-3 wrote: > > On Tue, 2009-07-14 at 03:22 -0700, ricardo13 wrote: >> Hi, >> >> Yesterday, I studied mod_rewrite very much and I believe that >> fully_qualify_uri() function is where mod_rewrite does proxy. >> >> That's right ??

Re: Module that forward requests

2009-07-14 Thread ricardo13
p://ip_machine:port_machine(null)\x18#W\xb7[$\x07\bHl\xef\t\xd4m\xef\t\xdcm\xef\t\x04\n\xef\t What's this ? Thank you. Ricardo ricardo13 wrote: > > hi, > > I'm newbie in APR and need develop a module that forward request to > cluster. The same in mod_rewrite with

Re: Module that forward requests

2009-07-13 Thread ricardo13
Hi, I'm studying proxy in mod_rewrite and I saw the following line: request_rec *r; r->proxyreq == PROXYREQ_PROXY; But in httpd.h, the request_rec object hasn't field proxyreq. What's this ?? Thank you Ricardo ricardo13 wrote: > > hi, > > I'm newbie in

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: > > On Mon, Jul 13, 2009 at 10:46 AM, ricardo13 > wrote: > >>> Not arbitrarily.  You can store that value in a note (r->notes) and >>> set/query via rewrite if you're not looking to do much development. >>> >>> >&g

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: > > On Mon, Jul 13, 2009 at 10:33 AM, ricardo13 > wrote: >> >> >> >> Eric Covener wrote: >>> >>> On Mon, Jul 13, 2009 at 10:06 AM, ricardo13 >>> wrote: >>>>>> It's difficult. I'd suggest

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: > > On Mon, Jul 13, 2009 at 10:06 AM, ricardo13 > wrote: >>>> It's difficult. I'd suggest finding a way to use existing modules. >>> >>> Use or modify, that is. >>> Can my module to use mod_proxy for forward req

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: > > On Mon, Jul 13, 2009 at 9:53 AM, Eric Covener wrote: >> On Mon, Jul 13, 2009 at 9:48 AM, ricardo13 >> wrote: >> >>>> Only opinion. Is this difficult ?? or easy ?? >>>> Because I haven't idea !! >> >>

RE: Module that forward requests

2009-07-13 Thread ricardo13
achine(ip); > > Just it. My doubt is forward request as like mod_proxy, or flag [P] in > mod_rewrite. > I'm reading mod_proxy, but doesn't understood. > > Thank you > Ricardo > > > > > Thanks, > > Rick Houser > Auto-Owners Insurance > Sys

Re: Module that forward requests

2009-07-13 Thread ricardo13
Eric Covener wrote: > > On Mon, Jul 13, 2009 at 9:34 AM, ricardo13 > wrote: >> >> hi, >> >> I'm newbie in APR and need develop a module that forward request to >> cluster. >> The same in mod_rewrite with flag [P]. >> >> That

Module that forward requests

2009-07-13 Thread ricardo13
hi, I'm newbie in APR and need develop a module that forward request to cluster. The same in mod_rewrite with flag [P]. That module, I processing the object request_rec->uri and set what machine in cluster forward the request. Thank you. Ricardo -- View this message in context: http://www.nab

Re: APR, Shared Memory and extern process

2008-11-18 Thread ricardo13
Sorin Manolache wrote: > > On Tue, Nov 18, 2008 at 20:17, ricardo13 <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I'm writing a apache's module that comunicate with a extern process. >> >> My extern process is built in C: >> >&

APR, Shared Memory and extern process

2008-11-18 Thread ricardo13
Hi, I'm writing a apache's module that comunicate with a extern process. My extern process is built in C: char* shm_address; intshmid; key_t shmkey; shmkey = 5678; shmid = shmget(shmkey, SIZEOFSHMSEG, 0666); if (shmid == -1)

Re: Howto implement a new algorithm scheduler in mod_proxy_balancer

2008-10-25 Thread ricardo13
Hi I will build a scheduler that receive a little message from cluster. At cluster, there is a process that send messages about CPU. Then the server I need to build a separate program that receives that message and passes to the apache. Can I use socket to communicate external process with apach

Re: Howto implement a new algorithm scheduler in mod_proxy_balancer

2008-10-23 Thread ricardo13
ty > limited. Best thing is to create an external process which > runs separately and adjusts shared memory data. > > Re #2: It ain't trivial. > It's very hard ??? > What monitor ??? > Are there any book or tutorials about memory shared ?? > > Thank You > &

Howto implement a new algorithm scheduler in mod_proxy_balancer

2008-10-20 Thread ricardo13
Hi, I wanted implement a new algorithm scheduler to mod_proxy_balancer. I built a new algorithm and want test in apache2. Thank you Ricardo -- View this message in context: http://www.nabble.com/Howto-implement-a-new-algorithm-scheduler-in-mod_proxy_balancer-tp20082207p20082207.html Sent from