ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:105517] Re: [Ruby master Feature#18228] Add a `timeout` option to `IO.copy_stream`
Date: Fri, 1 Oct 2021 04:48:00 +0000	[thread overview]
Message-ID: <20211001044800.GA12161@dcvr> (raw)
In-Reply-To: <redmine.journal-93902.20210927165743.7941@ruby-lang.org>

"Eregon (Benoit Daloze)" <noreply@ruby-lang.org> wrote:
> I wonder, can `sendfile(2)` be interrupted by a signal like SIGVTALRM like for read/write?
> That might be another strategy to implement a timeout for it.

For the socket/pipe ends, yes (if blocking), that is
interruptible.  Not for regular files (unless it's something
like NFS mounted with interrupts enabled).

> Feature #18228: Add a `timeout` option to `IO.copy_stream`
> https://bugs.ruby-lang.org/issues/18228#change-93902

  reply	other threads:[~2021-10-01  4:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 12:16 [ruby-core:105450] [Ruby master Feature#18228] Add a `timeout` option to `IO.copy_stream` byroot (Jean Boussier)
2021-09-27 16:57 ` [ruby-core:105451] " Eregon (Benoit Daloze)
2021-10-01  4:48   ` Eric Wong [this message]
2021-09-27 20:11 ` [ruby-core:105453] " ioquatix (Samuel Williams)
2021-10-01  5:01   ` [ruby-core:105518] " Eric Wong
2021-09-27 21:21 ` [ruby-core:105454] " byroot (Jean Boussier)
2021-09-28 10:10 ` [ruby-core:105463] " Eregon (Benoit Daloze)
2021-09-28 10:17 ` [ruby-core:105464] " byroot (Jean Boussier)
2021-09-30 10:02 ` [ruby-core:105502] " ioquatix (Samuel Williams)
2021-09-30 10:09 ` [ruby-core:105503] " byroot (Jean Boussier)
2021-09-30 20:06 ` [ruby-core:105514] " Eregon (Benoit Daloze)

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-list from there: mbox

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

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

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

  git send-email \
    --in-reply-to=20211001044800.GA12161@dcvr \
    --to=ruby-core@ruby-lang.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).