about summary refs log tree commit homepage
path: root/lib/rainbows/writer_thread_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 02:20:00 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 02:20:00 +0000
commite7d295fd8e3628eba7a1ba52e95b7dee11532e98 (patch)
treefa66dff6217dc8d21ff4e70426f7933ee63e482a /lib/rainbows/writer_thread_spawn.rb
parent7f2cb1b56afda847c29e1e65fe0608a6f20a0fe6 (diff)
downloadrainbows-e7d295fd8e3628eba7a1ba52e95b7dee11532e98.tar.gz
Needless duplication sucks
Diffstat (limited to 'lib/rainbows/writer_thread_spawn.rb')
-rw-r--r--lib/rainbows/writer_thread_spawn.rb21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/rainbows/writer_thread_spawn.rb b/lib/rainbows/writer_thread_spawn.rb
index 4ee98dd..4215254 100644
--- a/lib/rainbows/writer_thread_spawn.rb
+++ b/lib/rainbows/writer_thread_spawn.rb
@@ -28,26 +28,7 @@ module Rainbows::WriterThreadSpawn
   # this is compatible with IO.select
   class MySocket < Struct.new(:to_io, :q, :thr)  # :nodoc: all
     include Rainbows::Response
-
-    def kgio_addr
-      to_io.kgio_addr
-    end
-
-    def kgio_read(size, buf = "")
-      to_io.kgio_read(size, buf)
-    end
-
-    def kgio_read!(size, buf = "")
-      to_io.kgio_read!(size, buf)
-    end
-
-    def kgio_trywrite(buf)
-      to_io.kgio_trywrite(buf)
-    end
-
-    def timed_read(buf)
-      to_io.timed_read(buf)
-    end
+    include Rainbows::SocketProxy
 
     def queue_writer
       # not using Thread.pass here because that spins the CPU during