public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Subject: [PATCH 0/3] Fail gracefully on too many open files
Date: Wed,  8 Mar 2023 13:33:45 +0100	[thread overview]
Message-ID: <20230308123348.2232214-1-sbrivio@redhat.com> (raw)

If we can't bind a few ports out of a port specifier, fine, we don't
want to bother the user with that.

But running out of files on '-t all' or similar is something
different: patch 3/3 fixes this, 1/3 and 2/3 are preparation steps.

Stefano Brivio (3):
  tcp, udp, util: Pass socket creation errors all the way up
  tcp, udp: Fix partial success return codes in {tcp,udp}_sock_init()
  conf: Terminate on EMFILE or ENFILE on sockets for port mapping

 conf.c | 36 +++++++++++++++++++++++++++++-------
 tcp.c  | 29 ++++++++++++++---------------
 udp.c  | 44 +++++++++++++++++++++-----------------------
 util.c | 31 ++++++++++++++++++-------------
 4 files changed, 82 insertions(+), 58 deletions(-)

-- 
2.39.2


             reply	other threads:[~2023-03-08 12:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 12:33 Stefano Brivio [this message]
2023-03-08 12:33 ` [PATCH 1/3] tcp, udp, util: Pass socket creation errors all the way up Stefano Brivio
2023-03-08 22:16   ` David Gibson
2023-03-08 12:33 ` [PATCH 2/3] tcp, udp: Fix partial success return codes in {tcp,udp}_sock_init() Stefano Brivio
2023-03-08 22:43   ` David Gibson
2023-03-08 12:33 ` [PATCH 3/3] conf: Terminate on EMFILE or ENFILE on sockets for port mapping Stefano Brivio
2023-03-08 22:45   ` David Gibson

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=20230308123348.2232214-1-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).