On Tue, August 22, 2006 22:39, Alexey Kuznetsov said:
> Feel free to do this correctly. :-)
> Deleting "wrong" code rarely helps.
>
> It is the only protection of commiting infinite amount of memory to a socket.

Doesn't the "if (atomic_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf)" check in 
sock_alloc_send_pskb()
limit things already? Or don't unix datagram sockets have a limited sendbuffer? 
Ouch, that
complicates things.

But wait a moment, I'm running a kernel now with the patch applied and some 
testcode shows that
everything seems to behave as expected, with send() returning EAGAIN after a 
while, and poll
giving POLLOUT when more data can be send.

What am I missing?

Indan


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to