about summary refs log tree commit homepage
path: root/lib/unicorn/tcphack.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-05 20:50:58 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-09 19:50:50 -0800
commitbc44990ddb16669030cf0ca72f48e1c6c620a4f2 (patch)
tree0118dccd255738aaf365bc15aaf2360c98f5479b /lib/unicorn/tcphack.rb
parenta105f96edd9bc842170c6272b0d37b8891152824 (diff)
downloadunicorn-bc44990ddb16669030cf0ca72f48e1c6c620a4f2.tar.gz
We'll be supporting UNIX domain sockets soon...  Get rid of
tcphack since it was overriding a default method and just
manually call Socket.new, bind, listen ourselves.  Additionaly,
use SO_REUSEADDR when binding since it is convenient for
restarts.
Diffstat (limited to 'lib/unicorn/tcphack.rb')
-rw-r--r--lib/unicorn/tcphack.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/unicorn/tcphack.rb b/lib/unicorn/tcphack.rb
deleted file mode 100644
index 634f9dd..0000000
--- a/lib/unicorn/tcphack.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright (c) 2005 Zed A. Shaw
-# You can redistribute it and/or modify it under the same terms as Ruby.
-#
-# Additional work donated by contributors.  See http://mongrel.rubyforge.org/attributions.html
-# for more information.
-
-
-# A modification proposed by Sean Treadway that increases the default accept
-# queue of TCPServer to 1024 so that it handles more concurrent requests.
-class TCPServer
-   def initialize_with_backlog(*args)
-     initialize_without_backlog(*args)
-     listen(1024)
-   end
-
-   alias_method :initialize_without_backlog, :initialize
-   alias_method :initialize, :initialize_with_backlog
-end