All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Nishit Shah <nishit@elitecore.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Do nfnl_query and nfnl_catch are blocking fuctions ?
Date: Sun, 16 Mar 2008 13:03:50 +0100	[thread overview]
Message-ID: <47DD0CA6.8040002@netfilter.org> (raw)
In-Reply-To: <002901c8859b$11fa98c0$35efca40$@com>

Nishit Shah wrote:
> Yes,
> 	I am using libnetfilter_conntrack for adding expected connection
> through Application Proxies. Now, sometimes my proxy hangs and when I do gdb
> on the core generated, recvmsg call is in waiting mode.

Does this happen under heavy load? Probably the ack message from netlink
is getting lost. You can change the socket behaviour accessing the
descriptor with nfct_fd(...)

> 	I have changed libnetfilter_conntrack slightly to make it single
> socket for my Proxy. I do nfct_open at time of proxy start, do
> nfct_create_expectation every time request comes and nfct_close when proxy
> ends.

BTW, not directly related but I suggest you to if you move to the new
API, the old one is deprecated and broken in some specific aspects.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

      reply	other threads:[~2008-03-16 12:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13 12:05 Do nfnl_query and nfnl_catch are blocking fuctions ? Nishit Shah
2008-03-13 16:36 ` Pablo Neira Ayuso
2008-03-14  6:17   ` Nishit Shah
2008-03-16 12:03     ` Pablo Neira Ayuso [this message]

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=47DD0CA6.8040002@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=nishit@elitecore.com \
    /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.