lib/async/http/body/hijack.rb in async-http-0.52.1 vs lib/async/http/body/hijack.rb in async-http-0.52.2

- old
+ new

@@ -57,9 +57,15 @@ else false end end + def ready? + if @stream + @stream.output.ready? + end + end + # Read the next available chunk. def read unless @task @stream = Stream.new(@input)