search for: kgio_tryaccept

Displaying 3 results from an estimated 3 matches for "kgio_tryaccept".

2011 Jan 13
5
Unicorn 3.3.1 "Too many open files" error in kgio_tryaccept
Strange error which took down my server today: Unhandled listen loop exception #<Errno::EMFILE: Too many open files - accept>. /usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_server.rb:606:in `kgio_tryaccept'' /usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_server.rb:606:in `worker_loop'' /usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_server.rb:605:in `each'' /usr/local/ruby-enterprise...
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...dy = readers.dup + @logger.info "worker=#{worker.nr} ready" begin nr < 0 and reopen_worker_logs(worker.nr) nr = 0 - worker.tick = Time.now.to_i - while sock = ready.shift + tmp = ready.dup + while sock = tmp.shift + # Unicorn::Worker#kgio_tryaccept is not like accept(2) at all, + # but that will return false if client = sock.kgio_tryaccept process_client(client) nr += 1 @@ -663,8 +666,8 @@ class Unicorn::HttpServer # we''re probably reasonably busy, so avoid calling select() # and do...
2011 Jun 16
7
[PATCH] replace fchmod()-based heartbeat with raindrops
...is out. No-op - # changes with chmod doesn''t update ctime on all filesystems; so - # we change our counter each and every time (after process_client - # and before IO.select). - alive.chmod(m = 0 == m ? 1 : 0) - while sock = ready.shift if client = sock.kgio_tryaccept + worker.tick = Time.now.to_i process_client(client) + worker.tick = 0 nr += 1 - alive.chmod(m = 0 == m ? 1 : 0) end break if nr < 0 end @@ -619,18 +602,17 @@ class Unicorn::HttpServer end ppid == Process.p...