From fd0e8f9ed47a5c9316be2306b4d21130c46d7218 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 20 Jul 2016 22:45:36 +0000 Subject: wbuf_lite: clear @busy flag when re-arming 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. --- lib/yahns/wbuf_lite.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7