Skip to content

Commit

Permalink
SO_DEBUG requires "CAP_NET_ADMIN capability or an effective user ID o…
Browse files Browse the repository at this point in the history
…f 0" (fixes eventmachine#377)
  • Loading branch information
tmm1 committed Nov 8, 2012
1 parent 3c39365 commit b96b736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_set_sock_opt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_set_sock_opt
EM.run do
EM.connect 'google.com', 80, Module.new {
define_method :post_init do
val = set_sock_opt Socket::SOL_SOCKET, Socket::SO_DEBUG, true
val = set_sock_opt Socket::SOL_SOCKET, Socket::SO_BROADCAST, true
test.assert_equal 0, val
EM.stop
end
Expand Down

0 comments on commit b96b736

Please sign in to comment.