add IO.trysplice interface
commit62f706a496eba0bc581fb2c277fed2dc29f60eb0
authorEric Wong <normalperson@yhbt.net>
Sat, 26 Feb 2011 22:17:25 +0000 (26 14:17 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 26 Feb 2011 22:19:22 +0000 (26 14:19 -0800)
tree4649fd85dbb7ad62b8af5cf95abf5369ef108f5e
parent1dd7ade30687dfbe220315ab412c33e2edbfa14f
add IO.trysplice interface

This reduces the cost of EAGAIN and EOF since they
are not considered exceptional conditions.
ext/io_splice/io_splice_ext.c
test/test_io_splice.rb