Displaying 4 results from an estimated 4 matches for "tcp_defer_accept_opt".
Did you mean:
tcp_defer_accept_opts
2006 Nov 25
3
[PATCH] HTTP accept filter support for FreeBSD
...------------
--- mongrel.rb.orig Sat Nov 25 05:19:12 2006
+++ mongrel.rb Sat Nov 25 08:41:20 2006
@@ -666,10 +666,17 @@
end
def configure_socket_options
- if /linux/ === RUBY_PLATFORM
+ case RUBY_PLATFORM
+ when /linux/
# 9 is currently TCP_DEFER_ACCEPT
- $tcp_defer_accept_opts = [9,1]
- $tcp_cork_opts = [3,1]
+ $tcp_defer_accept_opts = [Socket::SOL_TCP, 9, 1]
+ $tcp_cork_opts = [Socket::SOL_TCP, 3, 1]
+ when /freebsd/
+ # Use the HTTP accept filter if available.
+ # The struct made by pack() is defined in /usr/include/sys/socket.h...
2007 Jan 26
2
Attention FreeBSD Gurus
...ce of code in a patch that turns on the FreeBSD http filtering. I completely missed that it calls /sbin/sysctl directly which means I''m slipping on my auditing.
def configure_socket_options
case RUBY_PLATFORM
when /linux/
# 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/
# Use the HTTP accept filter if available.
# The struct made by pack() is defined in /usr/include/sys/socket.h as accept_filter_arg
unless `/sbin/sysctl -nq net.inet.accf.http`.e...
2007 Oct 29
9
Problems with mongrel on NetBSD
I seem to have a (recent) problem with mongrel on NetBSD. I''m running
a development release of NetBSD (called NetBSD-current 4.99.34).
When I start mongrel, it listens on the IPv6 wildcard address, but not
on the IPv4 wildcard:
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with
2007 Oct 27
8
mongrel 1.0.3
Hello!
Run problems after upgrading to mongrel 1.0.3 from 1.0.1:
# uname -sr
FreeBSD 7.0-BETA1
# mongrel_rails start
** Starting Mongrel listening at :3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
** Rails signals registered. HUP => reload