Displaying 3 results from an estimated 3 matches for "for_fd".
Did you mean:
err_fd
2013 Aug 23
5
Ruby 2.0 Bad file descriptor (Errno::EBADF)
hi. i''ve been trying to upgrade my stack to ruby 2.0 but keep getting this on ubuntu (not on my local os x):
/hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in `for_fd'': Bad file descriptor (Errno::EBADF)
from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in `block in inherit_listeners!''
from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:745:in `map''
from /hello/shared/...
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
...+ end
sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
+ if defined?(SO_REUSEPORT) && opt[:reuseport]
+ sock.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1)
+ end
sock.bind(Socket.pack_sockaddr_in(port, addr))
IO_PURGATORY << sock
Kgio::TCPServer.for_fd(sock.fileno)
diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb
index a38082c..abc177b 100644
--- a/test/unit/test_socket_helper.rb
+++ b/test/unit/test_socket_helper.rb
@@ -184,4 +184,12 @@ class TestSocketHelper < Test::Unit::TestCase
assert_equal 1, cur
r...
2007 Jan 23
0
Error while creating one worker from another
...er from
another BUT only when i derive worker class from Worker::Base instead or
Worker::RailsBase - when change it back it works fine, child worker can
have empty do_work, but this error still ocours
Bad file descriptor (Errno::EBADF)
/var/lib/gems/1.8/gems/slave-1.2.0/lib/slave.rb:214:in `for_fd''
/var/lib/gems/1.8/gems/slave-1.2.0/lib/slave.rb:214:in
`close_unused_sockets_after_forking''
/var/lib/gems/1.8/gems/slave-1.2.0/lib/slave.rb:138:in `each''
/var/lib/gems/1.8/gems/slave-1.2.0/lib/slave.rb:138:in `send''
/var/lib/gems/1.8/gems/slave-1.2.0/lib/slave....