copy_stream uses IO.trysplice instead of IO.splice