kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: "Iñaki Baz Castillo" <>
Subject: Re: Using Kgio::TCPSocket.start with EventMachine (in non blocking way)
Date: Tue, 10 Apr 2012 22:56:58 +0200	[thread overview]
Message-ID: <> (raw)

2012/4/10 Eric Wong <>:
> Iñaki Baz Castillo <> wrote:
>> This is, could it occur that kgio_trywrite() returns :wait_writable
>> *after* the connection was successfully established and data already
>> sent or received?
> Yes, socket buffers can be filled up if the reader can't read fast
> enough.  Sometimes the write() is partial before this happens (and the
> kernel may internally allocate more memory for socket buffers in this
> case).

Good to know. Ok, my code is ready for that ;)

Iñaki Baz Castillo

      reply	other threads:[~2012-04-10 20:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06 14:47 Using Kgio::TCPSocket.start with EventMachine (in non blocking way) Iñaki Baz Castillo
2012-04-06 15:10 ` Iñaki Baz Castillo
2012-04-09  3:17 ` Eric Wong
2012-04-09 18:12   ` Iñaki Baz Castillo
2012-04-10 12:35     ` Iñaki Baz Castillo
2012-04-10 20:09       ` Eric Wong
2012-04-10 20:56         ` Iñaki Baz Castillo [this message]

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:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \

* 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

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