workaround for unicorn 5.3.0
commitd07b6fd6888367c6230cf950d149bb6934ac11bf
authorEric Wong <e@80x24.org>
Sun, 2 Apr 2017 01:54:01 +0000 (2 01:54 +0000)
committerEric Wong <e@80x24.org>
Sun, 2 Apr 2017 02:04:11 +0000 (2 02:04 +0000)
treef8dc1cab7d332173ad6a0b17b8e4563d1cec36bd
parent7bfff8a869a29828932685cf49c4992a9d688918
workaround for unicorn 5.3.0

unicorn 5.3.0 introduced a new Unicorn::TCPSrv and
Unicorn::TCPClient constants to distinguish TCP sockets
from Unix ones from its check_client_connection feature.

These classes screw up our direct inheritance of Kgio::Socket
from the Rainbows::Client class.  Since we do not support
check_client_connection, we do not need these new classes in
unicorn.  Removing Unicorn::TCPSrv and aliasing it as
Kgio::TCPServer is sufficient for now.  In the future,
removing all kgio dependencies from Rainbows! will be prioritized.

Thanks to Claudio Poli for reporting the bug:

  https://bogomips.org/rainbows-public/9267B33C-D13C-47E1-8892-4777B96DDCD1@gmail.com/
lib/rainbows.rb