lib/rainbows/writer_thread_spawn/client.rb in rainbows-3.1.0 vs lib/rainbows/writer_thread_spawn/client.rb in rainbows-3.2.0

- old
+ new

@@ -19,10 +19,10 @@ Rainbows::SyncClose.new(body) { |sync_body| q << [ :write_response, status, headers, sync_body, alive ] } end - if IO.respond_to?(:copy_stream) || IO.method_defined?(:sendfile_nonblock) + if IO.respond_to?(:copy_stream) || IO.method_defined?(:trysendfile) def write_response(status, headers, body, alive) self.q ||= queue_writer if body.respond_to?(:close) write_response_close(status, headers, body, alive) elsif body.respond_to?(:to_path)