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(+)

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 @@ def wbuf_close(client)
     # 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
-- 
EW
--
unsubscribe: yahns-public+unsubscr...@yhbt.net
archive: https://yhbt.net/yahns-public/

Reply via email to