From 2f820a252252152118ac126546759494d8e6eecc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 12 Feb 2016 00:52:04 +0000 Subject: acceptor: all subclasses of TCPServer use TCP_INFO This will allow Yahns::OpenSSLServer instances to take advantage of TCP_INFO under Linux, saving us the overhead of method invocations. --- lib/yahns/acceptor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yahns/acceptor.rb b/lib/yahns/acceptor.rb index 8650c50..7ab9f60 100644 --- a/lib/yahns/acceptor.rb +++ b/lib/yahns/acceptor.rb @@ -70,7 +70,7 @@ module Yahns::Acceptor # :nodoc: end def expire_mod - (Yahns::TCPServer === self && Yahns.const_defined?(:ClientExpireTCPI)) ? + (TCPServer === self && Yahns.const_defined?(:ClientExpireTCPI)) ? Yahns::ClientExpireTCPI : Yahns::ClientExpireGeneric end end -- cgit v1.2.3-24-ge0c7