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 @@ def spawn_acceptor(nr, logger, client_class)
   end
 
   def expire_mod
-    (Yahns::TCPServer === self && Yahns.const_defined?(:ClientExpireTCPI)) ?
+    (TCPServer === self && Yahns.const_defined?(:ClientExpireTCPI)) ?
      Yahns::ClientExpireTCPI : Yahns::ClientExpireGeneric
   end
 end
-- 
EW

--
unsubscribe: yahns-public+unsubscr...@yhbt.net
archive: http://yhbt.net/yahns-public/

Reply via email to