about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-12 00:52:04 +0000
committerEric Wong <e@80x24.org>2016-02-12 00:52:04 +0000
commit2f820a252252152118ac126546759494d8e6eecc (patch)
treec430d01694a96c4bf90f70a0ef2d3f194dfa88eb
parent80b86874fbcee0edf847ff4ac0e9e609a963578b (diff)
downloadyahns-2f820a252252152118ac126546759494d8e6eecc.tar.gz
This will allow Yahns::OpenSSLServer instances to take advantage
of TCP_INFO under Linux, saving us the overhead of method
invocations.
-rw-r--r--lib/yahns/acceptor.rb2
1 files changed, 1 insertions, 1 deletions
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