From: Rayed <rayed@saudi.net.sa>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: Forking inside netfilter queue
Date: Tue, 01 May 2007 09:30:22 +0300 [thread overview]
Message-ID: <4636DE7E.80600@saudi.net.sa> (raw)
In-Reply-To: <Pine.LNX.4.61.0704301547010.29151@yvahk01.tjqt.qr>
Thanks Jan for the reply.
I know how preforking works (almost), what I want to know if multi
processes can access the same queue API without breaking anything.
Jan Engelhardt wrote:
> On Apr 30 2007 16:18, Rayed wrote:
>
>> I am building netfilter queue application, that implement simple
>> HTTP filter.
>>
>> It basically will capture the packet, extract the URL, and issue
>> MySQL lookup to see if the address is permitted or blocked.
>>
>> My only fear that address lookup will block the traffic until I get
>> the lookup reply, so I am thinking of using preforking model to
>> fork 10-20 processes to handle the same queue.
>>
>> Has any one done multi prcoess handling of the queue, is it even doable?
>>
>
> See Apache, it uses preforking. But perhaps threading is much simpler
> and equally fast.
>
>
> Jan
>
next prev parent reply other threads:[~2007-05-01 6:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-30 13:18 Forking inside netfilter queue Rayed
2007-04-30 13:47 ` Jan Engelhardt
2007-05-01 6:30 ` Rayed [this message]
2007-05-01 8:32 ` Jan Engelhardt
2007-05-01 18:27 ` Can't get --dport to work Joel Lindsay
2007-05-01 20:28 ` Krishnamoorthy (Siva) Sivakumar
2007-05-03 15:25 ` Forking inside netfilter queue Alex
2007-05-03 19:20 ` Rayed Alrashed
2007-05-03 17:48 ` Alex
2007-05-03 18:39 ` Rayed Alrashed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4636DE7E.80600@saudi.net.sa \
--to=rayed@saudi.net.sa \
--cc=jengelh@linux01.gwdg.de \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.