about summary refs log tree commit homepage
path: root/lib/rainbows/epoll
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-21 22:56:29 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-21 22:56:29 -0800
commit6f6a95b6e3b4f76278cd19b787c8487453dae4d4 (patch)
treece8a78708c650728bea2405c155990978e9ad030 /lib/rainbows/epoll
parent01fbc4a7f2fd5b751b9183d11aa74aadaffd145b (diff)
downloadrainbows-6f6a95b6e3b4f76278cd19b787c8487453dae4d4.tar.gz
We know @wr_queue is empty since we just initialized it
and the first thing an HTTP client does is read.
Diffstat (limited to 'lib/rainbows/epoll')
-rw-r--r--lib/rainbows/epoll/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/epoll/client.rb b/lib/rainbows/epoll/client.rb
index 6bf12f1..dfa5652 100644
--- a/lib/rainbows/epoll/client.rb
+++ b/lib/rainbows/epoll/client.rb
@@ -27,7 +27,7 @@ module Rainbows::Epoll::Client
   def epoll_once
     @wr_queue = [] # may contain String, ResponsePipe, and StreamFile objects
     post_init
-    epoll_run
+    on_readable
     rescue => e
       handle_error(e)
   end