[ruby-core:105517] Re: [Ruby master Feature#18228] Add a `timeout` option to `IO.copy_stream`
From:
Eric Wong <normalperson@...>
Date:
2021-10-01 04:48:00 UTC
List:
ruby-core #105517
"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 Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>