Move portability and override Socket stuff to unicorn/socket
commitbc44990ddb16669030cf0ca72f48e1c6c620a4f2
authorEric Wong <normalperson@yhbt.net>
Fri, 6 Feb 2009 04:50:58 +0000 (5 20:50 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 10 Feb 2009 03:50:50 +0000 (9 19:50 -0800)
tree0118dccd255738aaf365bc15aaf2360c98f5479b
parenta105f96edd9bc842170c6272b0d37b8891152824
Move portability and override Socket stuff to unicorn/socket

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.
lib/unicorn.rb
lib/unicorn/socket.rb [new file with mode: 0644]
lib/unicorn/tcphack.rb [deleted file]