From: Eric Wong <normalperson@yhbt.net>
To: ruby.io.splice@librelist.com
Subject: Re: Re: Using io_splice for reading from EventMachine TCP socket
Date: Mon, 27 Dec 2010 16:22:35 +0000 [thread overview]
Message-ID: <20101227162235.GA8533@dcvr.yhbt.net> (raw)
In-Reply-To: AANLkTikdxwLEGHEnM73n1+pMphZHyo_xEw-68_nC9YcE@mail.gmail.com
Iñaki Baz Castillo <ibc@aliax.net> wrote:
> > My question is: is it possible with EM? I expect I just need the
> > socket file descriptor in which EM receives the data but the API
> > provided by EM::Connection doesn't seem to offer such file descriptor.
>
> By inspecting EM code such feature is not offered at API level so I've
> created a patch:
>
> https://github.com/eventmachine/eventmachine/pull/144
Actually, io_splice doesn't require integer FDs anymore, it can take IO
objects. I've updated the example on the website (it was in git, but
never pushed up).
--
Eric Wong
next prev parent reply other threads:[~2010-12-27 16:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-27 13:07 Using io_splice for reading from EventMachine TCP socket Iñaki Baz Castillo
2010-12-27 14:17 ` Iñaki Baz Castillo
2010-12-27 16:22 ` Eric Wong [this message]
2010-12-27 16:58 ` Iñaki Baz Castillo
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-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/ruby_io_splice/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101227162235.GA8533@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=ruby.io.splice@librelist.com \
/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.
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).