mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Fix problem when running in freebsd < 5.4 (closes: #8112)
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@573 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
328b9bb413
commit
aba76a44ce
1 changed files with 2 additions and 0 deletions
|
@ -704,6 +704,8 @@ module Mongrel
|
|||
# 9 is currently TCP_DEFER_ACCEPT
|
||||
$tcp_defer_accept_opts = [Socket::SOL_TCP, 9, 1]
|
||||
$tcp_cork_opts = [Socket::SOL_TCP, 3, 1]
|
||||
when /freebsd(([1-4]\..{1,2})|5\.[0-4])/
|
||||
# Do nothing, just closing a bug when freebsd <= 5.4
|
||||
when /freebsd/
|
||||
# Use the HTTP accept filter if available.
|
||||
# The struct made by pack() is defined in /usr/include/sys/socket.h as accept_filter_arg
|
||||
|
|
Loading…
Reference in a new issue