Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pablo Neira Ayuso
Date: Monday, March 23, 2009 - 5:25 am

Patrick McHardy wrote:

Yes, but once we set that bit to 1, we stop sending ENOBUFS to
userspace. So I think that congestion also applies to error reporting,
with "attached to" I meant "related" :).


Yes, but think about this scenario:

1) We hit ENOBUFS, you call recvmsg() you get the error, and error is
cleared.
2) You're going to call recvmsg() again but before doing so, we hit
ENOBUFS again. So you call recvmsg() and you get the error again.

I think that this may lead to indefinitely getting ENOBUFS without
retrieving data under very heavy load.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Pablo Neira Ayuso, (Mon Mar 23, 2:33 am)
Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Patrick McHardy, (Mon Mar 23, 4:58 am)
Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Pablo Neira Ayuso, (Mon Mar 23, 5:11 am)
Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Patrick McHardy, (Mon Mar 23, 5:14 am)
Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Pablo Neira Ayuso, (Mon Mar 23, 5:25 am)
Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Patrick McHardy, (Mon Mar 23, 5:41 am)
Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Pablo Neira Ayuso, (Mon Mar 23, 6:05 am)
Re: [PATCH] netlink: add NETLINK_NO_ENOBUFS socket flag, Patrick McHardy, (Mon Mar 23, 6:09 am)