On Thu, 2012-10-04 at 14:12 +0200, Erik Hugne wrote:
quoted
And this limit is tested _before_ queueing to backlog if socket is owned
by the user ?
You'll have to demonstrate this in the changelog.
Again, I dont think this patch is safe, we need an explicit limit.
You're right Eric..
Another way of solving it is to increase the default sk_rcvbuf size to
(TIPC_FLOW_CONTROL_WIN * 2 * TIPC_MAX_USER_MSG_SIZE)
at socket creation.
Do you think that would be acceptable?
If its a tipc constant, you also could use
if (sk_add_backlog(sk, buf,
TIPC_FLOW_CONTROL_WIN * 2 * TIPC_MAX_USER_MSG_SIZE))
no ?
But yes, a protocol is allowed to change sk_rcvbuf value (its done for
TCP for example, with a limit to tcp_rmem[2] (between 4 and 6 Mbytes)