From 0be3542b4e16972e0ec5ff354625f45ea8241883 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Oct 2009 02:44:18 -0700 Subject: huge documentation revamp --- lib/rainbows/thread_spawn.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rainbows/thread_spawn.rb') diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index 085da39..36968d8 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -1,6 +1,14 @@ # -*- encoding: binary -*- module Rainbows + # Spawns a new thread for every client connection we accept(). This + # model is recommended for platforms where spawning threads is + # inexpensive. + # + # If you're connecting to external services and need to perform DNS + # lookups, consider using the "resolv-replace" library which replaces + # parts of the core Socket package with concurrent DNS lookup + # capabilities module ThreadSpawn include Base -- cgit v1.2.3-24-ge0c7