All of lore.kernel.org
 help / color / mirror / Atom feed
* Do nfnl_query and nfnl_catch are blocking fuctions ?
@ 2008-03-13 12:05 Nishit Shah
  2008-03-13 16:36 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Nishit Shah @ 2008-03-13 12:05 UTC (permalink / raw)
  To: netfilter-devel

Hi,
                Is it possible that on high rate of conntrack
addition/deletion/updation, nfnl_query or nfnl_catch, If space is not
available at the sending socket these fuctions will block as they are using
sendto and recvmsg calls ?

Rgds,
Nishit Shah. 

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Do nfnl_query and nfnl_catch are blocking fuctions ?
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2008-03-13 16:36 UTC (permalink / raw)
  To: Nishit Shah; +Cc: netfilter-devel

Nishit Shah wrote:
> Hi,
>                 Is it possible that on high rate of conntrack
> addition/deletion/updation, nfnl_query or nfnl_catch, If space is not
> available at the sending socket these fuctions will block as they are using
> sendto and recvmsg calls ?

What kind of behaviour are you observing? Please elaborate.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Do nfnl_query and nfnl_catch are blocking fuctions ?
  2008-03-13 16:36 ` Pablo Neira Ayuso
@ 2008-03-14  6:17   ` Nishit Shah
  2008-03-16 12:03     ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Nishit Shah @ 2008-03-14  6:17 UTC (permalink / raw)
  To: 'Pablo Neira Ayuso'; +Cc: netfilter-devel

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.

	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.

Rgds,
Nishit Shah.    

-----Original Message-----
From: netfilter-devel-owner@vger.kernel.org
[mailto:netfilter-devel-owner@vger.kernel.org] On Behalf Of Pablo Neira
Ayuso
Sent: Thursday, March 13, 2008 10:06 PM
To: Nishit Shah
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Do nfnl_query and nfnl_catch are blocking fuctions ?

Nishit Shah wrote:
> Hi,
>                 Is it possible that on high rate of conntrack
> addition/deletion/updation, nfnl_query or nfnl_catch, If space is not
> available at the sending socket these fuctions will block as they are
using
> sendto and recvmsg calls ?

What kind of behaviour are you observing? Please elaborate.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Do nfnl_query and nfnl_catch are blocking fuctions ?
  2008-03-14  6:17   ` Nishit Shah
@ 2008-03-16 12:03     ` Pablo Neira Ayuso
  0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2008-03-16 12:03 UTC (permalink / raw)
  To: Nishit Shah; +Cc: netfilter-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-16 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.