io_splice RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* removing MRI 1.8 support
@ 2011-05-13  0:33 Eric Wong
  2011-05-13  8:06 ` Iñaki Baz Castillo
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2011-05-13  0:33 UTC (permalink / raw)
  To: ruby.io.splice

Anybody really care for it?

I think it's too painful to support completely due to the way
SPLICE_F_NONBLOCK is handled for pipes and how the file O_NONBLOCK flag
of the non-pipe is relied on.

splice() ignores O_NONBLOCK on the pipe, instead relying on
SPLICE_F_NONBLOCK being passed to it.  However, SPLICE_F_NONBLOCK
only affects pipes, so if you splice a pipe to a socket, you need
O_NONBLOCK on the socket.

Since MRI 1.8 uses non-blocking I/O and select() to schedule
threads, this is painful to deal with for users that may want
to see :EAGAIN or Errno::EAGAIN in some cases and not others.


Hopefully the above explaination is halfway coherent, I really
don't care enough about MRI 1.8 to do a better explanation :<

It may incidentally work in some/most cases, but 1.8 really isn't
worth my effort to maintain...

-- 
Eric Wong


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: removing MRI 1.8 support
  2011-05-13  0:33 removing MRI 1.8 support Eric Wong
@ 2011-05-13  8:06 ` Iñaki Baz Castillo
  0 siblings, 0 replies; 2+ messages in thread
From: Iñaki Baz Castillo @ 2011-05-13  8:06 UTC (permalink / raw)
  To: ruby.io.splice

2011/5/13 Eric Wong <normalperson@yhbt.net>:
> Hopefully the above explaination is halfway coherent, I really
> don't care enough about MRI 1.8 to do a better explanation :<
>
> It may incidentally work in some/most cases, but 1.8 really isn't
> worth my effort to maintain...

I plan to use io_splice in my Ruby server in a future, but my code
just works on Ruby 1.9 so.... :)
It's time to drop 1.8.

-- 
Iñaki Baz Castillo
<ibc@aliax.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-13  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13  0:33 removing MRI 1.8 support Eric Wong
2011-05-13  8:06 ` Iñaki Baz Castillo

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/ruby_io_splice.git/

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