From 946171bbc2e681cbab93863069767dd0fa4b6844 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 12 Jul 2016 21:11:33 +0000 Subject: wbuf_lite: use StringIO instead of TmpIO This allows us to work transparently with our OpenSSL workaround[*] while allowing us to reuse our non-sendfile compatibility code. Unfortunately, this means we duplicate a lot of code from the normal wbuf code for now; but that should be fairly stable at this point. [*] https://bugs.ruby-lang.org/issues/12085 --- lib/yahns/wbuf_common.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/yahns/wbuf_common.rb') diff --git a/lib/yahns/wbuf_common.rb b/lib/yahns/wbuf_common.rb index 2799baf..7cd19f7 100644 --- a/lib/yahns/wbuf_common.rb +++ b/lib/yahns/wbuf_common.rb @@ -2,14 +2,6 @@ # Copyright (C) 2013-2016 all contributors # 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 -- cgit v1.2.3-24-ge0c7