diff options
author | Eric Wong <e@80x24.org> | 2016-07-20 22:45:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-20 23:03:39 +0000 |
commit | fd0e8f9ed47a5c9316be2306b4d21130c46d7218 (patch) | |
tree | 4fda848657c9e31342e825443dd5ba36126cecf7 | |
parent | 4335b6841d5aad1a57ee72b7476e1cec00cfb698 (diff) | |
download | yahns-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.rb | 1 |
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 |