diff options
author | Eric Wong <e@80x24.org> | 2015-01-23 02:21:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-01-24 00:10:02 +0000 |
commit | d5e52cbf66d9607a72193680239d2cafe86a190b (patch) | |
tree | c6b5042d888c402c490cdc8ac443e8e0016d4b1b | |
parent | 1faf2322b0776f7e51d4aa1f776ee4a0d268bff1 (diff) | |
download | yahns-d5e52cbf66d9607a72193680239d2cafe86a190b.tar.gz |
The state management has evolved slightly over time, so update the comments to reflect that.
-rw-r--r-- | lib/yahns/stream_file.rb | 4 | ||||
-rw-r--r-- | lib/yahns/wbuf_common.rb | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/yahns/stream_file.rb b/lib/yahns/stream_file.rb index 793f0de..fabbb9d 100644 --- a/lib/yahns/stream_file.rb +++ b/lib/yahns/stream_file.rb @@ -36,7 +36,9 @@ class Yahns::StreamFile # :nodoc: @body = body end - # called by last wbuf_flush + # called by last wbuf_flush, + # returns true / false for persistent/non-persistent connections, + # :ignore for hijacked connections def wbuf_close(client) @tmpio.close if NeedClose === @tmpio wbuf_close_common(client) diff --git a/lib/yahns/wbuf_common.rb b/lib/yahns/wbuf_common.rb index 0ce4526..9e2d855 100644 --- a/lib/yahns/wbuf_common.rb +++ b/lib/yahns/wbuf_common.rb @@ -9,7 +9,9 @@ rescue LoadError 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) |