Do nfnl_query and nfnl_catch are blocking fuctions ?
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso
maintainerQuoted 5 lines · Nishit Shah
Hi,
Is it possible that on high rate of conntrack
addition/deletion/updation,nfnl_queryornfnl_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.
Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
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: [email protected] [mailto:[email protected]] On Behalf Of Pablo Neira Ayuso
Sent: Thursday, March 13, 2008 10:06 PM
To: Nishit Shah
Cc: [email protected]
Subject: Re: Do nfnl_query and nfnl_catch are blocking fuctions ?
Quoted 4 lines · Nishit Shah
Hi,
Is it possible that on high rate of conntrack
addition/deletion/updation,nfnl_queryornfnl_catch, If space is not available at the sending socket these fuctions will block as they are
using
Quoted 1 line
sendto and recvmsg calls ?
What kind of behaviour are you observing? Please elaborate.
Signature · 6 lines
"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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso
maintainerQuoted 4 lines · Nishit Shah
Yes,
I am usinglibnetfilter_conntrackfor 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(...)
Quoted 4 lines
I have changed
libnetfilter_conntrackslightly to make it single
socket for my Proxy. I donfct_openat time of proxy start, donfct_create_expectationevery time request comes andnfct_closewhen 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.
Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers