Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: updates in git://bogomips.org/rainbows.git
Date: Fri, 20 May 2011 19:16:55 +0000	[thread overview]
Message-ID: <20110520191655.GA11860@dcvr.yhbt.net> (raw)

== dropping keepalive clients on SIGQUIT

For all concurrency models where we manage idle keepalive ourselves
(anything using Cool.io or sleepy_penguin[1] epoll), SIGQUIT should drop
idle clients immediately.  These are some of the concurrency models
where maintaining keepalive clients is cheapest.

It would require more time/effort to get this working with EventMachine
(since we just rely on set_comm_inactivity_timeout in EventMachine).
Anybody really care about it?

I noticed SIGQUIT was taking a long time to take effect with long
keepalives while testing XEpoll somewhere...


== Kgio.autopush support for Thread-based concurrency models

I forgot to switch from IO#write to Kgio::SocketMethods#kgio_write.  The
latter is is needed to push pending frames if :tcp_nopush is true on a
listen socket.  This wasn't an issue for other concurrency models that
already used kgio_write/kgio_trywrite.  Most people don't use
:tcp_nopush, so this doesn't concern them, but I was testing with
:ThreadPool.

Unconfirmed, but if you're serving HTTP/0.9 clients, this may still have
adverse affect if you use sendfile/IO.copy_stream.   I'll report back
since there are probably Rainbows! users that depend heavily on HTTP/0.9
support :)


I've not written tests for either of these improvements, but will
do so before the 3.4.0 release.

[1] http://bogomips.org/sleepy_penguin/

-- 
Eric Wong
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


             reply	other threads:[~2011-05-20 19:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20 19:16 Eric Wong [this message]
     [not found] ` <20110520191655.GA11860-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2011-05-20 21:04   ` updates in git://bogomips.org/rainbows.git Eric Wong
2011-05-20 22:25   ` Eric Wong

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/rainbows/

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

  git send-email \
    --in-reply-to=20110520191655.GA11860@dcvr.yhbt.net \
    --to=normalperson-rmlxzr9ms24@public.gmane.org \
    --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \
    /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/rainbows.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).