about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-20 22:45:36 +0000
committerEric Wong <e@80x24.org>2016-07-20 23:03:39 +0000
commitfd0e8f9ed47a5c9316be2306b4d21130c46d7218 (patch)
tree4fda848657c9e31342e825443dd5ba36126cecf7
parent4335b6841d5aad1a57ee72b7476e1cec00cfb698 (diff)
downloadyahns-fd0e8f9ed47a5c9316be2306b4d21130c46d7218.tar.gz
This allows us to speed up subsequent calls to wbuf_write when
the client socket buffers are cleared.  This doesn't affect
functionality outside of performance.
-rw-r--r--lib/yahns/wbuf_lite.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/yahns/wbuf_lite.rb b/lib/yahns/wbuf_lite.rb
index 7d77da9..46da501 100644
--- a/lib/yahns/wbuf_lite.rb
+++ b/lib/yahns/wbuf_lite.rb
@@ -90,6 +90,7 @@ class Yahns::WbufLite # :nodoc:
     # the req_res socket itself could be completely drained of readable
     # data and just waiting for another request (which we don't support, yet)
     if @req_res
+      @busy = false
       client.hijack_cleanup
       Thread.current[:yahns_queue].queue_mod(@req_res, Yahns::Queue::QEV_WR)
       return :ignore