diff options
author | Eric Wong <e@80x24.org> | 2016-02-12 00:52:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-12 00:52:04 +0000 |
commit | 2f820a252252152118ac126546759494d8e6eecc (patch) | |
tree | c430d01694a96c4bf90f70a0ef2d3f194dfa88eb | |
parent | 80b86874fbcee0edf847ff4ac0e9e609a963578b (diff) | |
download | yahns-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.rb | 2 |
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 |