Re: TCP memory pressure question

From: Gianni Tedesco (gianni@ecsc.co.uk)
Date: Fri Nov 22 2002 - 07:06:29 EST


On Thu, 2002-11-21 at 21:34, David Schwartz wrote:
> When a Linux machine has reached the tcp_mem limit, what will happen to
> 'write's on non-blocking sockets? Will they block until more TCP memory is
> available? Will they return an error code? ENOMEM?

from write(2) man page.

EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and the write
would block.

-- 
// Gianni Tedesco (gianni at ecsc dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:40 EST