lib/yahns/wbuf_common.rb in yahns-1.5.0 vs lib/yahns/wbuf_common.rb in yahns-1.6.0
- old
+ new
@@ -7,10 +7,12 @@
rescue LoadError
require_relative 'sendfile_compat'
end
module Yahns::WbufCommon # :nodoc:
- # returns nil on success, :wait_*able when blocked
+ # returns true / false for persistent/non-persistent connections
+ # returns :wait_*able when blocked
+ # returns :ignore if hijacked
# currently, we rely on each thread having exclusive access to the
# client socket, so this is never called concurrently with wbuf_write
def wbuf_flush(client)
case rv = client.trysendfile(@tmpio, @sf_offset, @sf_count)
when Integer