lib/yahns/wbuf_common.rb in yahns-1.11.0 vs lib/yahns/wbuf_common.rb in yahns-1.12.0
- old
+ new
@@ -1,12 +1,14 @@
# -*- encoding: binary -*-
-# Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net>
-# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+# Copyright (C) 2013-2016 all contributors <yahns-public@yhbt.net>
+# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt)
+# frozen_string_literal: true
begin
raise LoadError, "SENDFILE_BROKEN env set" if ENV["SENDFILE_BROKEN"]
require 'sendfile'
rescue LoadError
require_relative 'sendfile_compat'
+ IO.__send__ :include, Yahns::SendfileCompat
end
module Yahns::WbufCommon # :nodoc:
# returns true / false for persistent/non-persistent connections
# returns :wait_*able when blocked