* [PATCH] test_socket_helper: do not depend on SO_REUSEPORT
@ 2015-02-06 22:34 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-02-06 22:34 UTC (permalink / raw)
To: unicorn-public; +Cc: Eric Wong
Older Rubies (2.0) may not define SO_REUSEPORT even if the
kernel and libc support it
---
test/unit/test_socket_helper.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb
index 8b09198..7526e82 100644
--- a/test/unit/test_socket_helper.rb
+++ b/test/unit/test_socket_helper.rb
@@ -193,5 +193,5 @@ class TestSocketHelper < Test::Unit::TestCase
assert_operator cur, :>, 0
rescue Errno::ENOPROTOOPT
# kernel does not support SO_REUSEPORT (older Linux)
- end
+ end if defined?(Socket::SO_REUSEPORT)
end
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-06 22:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06 22:34 [PATCH] test_socket_helper: do not depend on SO_REUSEPORT Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).