All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Schwartz <davids@webmaster.com>
To: <gianni@ecsc.co.uk>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: TCP memory pressure question
Date: Fri, 22 Nov 2002 12:28:54 -0800	[thread overview]
Message-ID: <20021122202855.AAA322@shell.webmaster.com@whenever> (raw)
In-Reply-To: <1037966789.6079.33.camel@lemsip>


On 22 Nov 2002 12:06:29 +0000, Gianni Tedesco wrote:

>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.

	So this would be a case where 'poll' or 'select' would return a write hit 
for a socket but 'write' would return -1 and set errno to EAGAIN.

	DS



  reply	other threads:[~2002-11-22 20:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-21 21:34 TCP memory pressure question David Schwartz
2002-11-22 12:06 ` Gianni Tedesco
2002-11-22 20:28   ` David Schwartz [this message]
2002-11-23  0:06     ` Jamie Lokier
2002-11-23  0:28       ` David Schwartz
2002-11-23 22:34         ` Folkert van Heusden
2002-11-23 22:54           ` David Schwartz
  -- strict thread matches above, loose matches on Subject: below --
2002-11-22  1:27 Nivedita Singhvi
2002-11-22  9:18 ` Alex Riesen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021122202855.AAA322@shell.webmaster.com@whenever \
    --to=davids@webmaster.com \
    --cc=gianni@ecsc.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.