Hi, My idea was to use worker_queue->data for prioritize. I will create 2 queues (worker_queue->data1 and worker_queue->data2) and requests type 1 will process firstly than requests type 2. This happens in a webcluster.
Frontend classifies (type 1 or type 2) and forward to backend. The backend processes the requests following worker_queues above. Thank you. Ricardo Ray Morris wrote: > >> I modified request_rec simply adding a field in >> request_rec. Now, I would like get this field >> in worker.c > > You also wouldn't modify request_rec, adding > a new data member, to add information about a > request anyway. If you wanted to add information > about a request, you would add it to the notes > table if there were no appropriate existing member. > request rec is used by every other module, so you > have no right to go changing it's definition. > > If you're wanting to prioritize by IP address, > Google "QOS" and your OS, such as "QOS Linux". > If you're wanting to prioritize based on something > else, start with r->connection. > -- > 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.bettercgi.com/affiliates/user/register.php > > > On 07/15/2009 06:39:11 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 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.nabble.com/How-do-I- >> manipulate-request_rec-Object-in-worker.c-tp24496166p24496166.html >> Sent from the Apache HTTP Server - Module Writers mailing list >> archive >> at Nabble.com. >> >> > > > > -- View this message in context: http://www.nabble.com/How-do-I-manipulate-request_rec-Object-in-worker.c-tp24496166p24497578.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.