search for: reap_dead_work

Displaying 4 results from an estimated 4 matches for "reap_dead_work".

2007 Nov 21
3
Mongrel Timeout?
...nals ready. INT => stop (no restart). ** Mongrel 1.1.1 available at 0.0.0.0:3000 ** INT signal received. Wed Nov 21 11:21:20 +0100 2007: Reaping 17 threads for slow workers because of ''shutdown'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.1-mswin32/bin/../lib/mongrel.rb:216:in `reap_dead_workers'': undefined local variable or method `w'' for #<Mongrel::HttpServer:0x37e5380>(NameError) from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.1-mswin32/bin/../lib/mongrel/configurator.rb:303:in `join'' from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.1-m...
2007 Oct 15
24
Design flaw? - num_processors, accept/close
...734 into a loop, possibly in its own method, which does sth like this: def myaccept while true return @socket.accept if worker_list.length < num_processors ## check first to see if we can handle the request. Let client worry about connect timeouts. while @num_processors < reap_dead_workers sleep @loop_throttle end end end 720 @acceptor = Thread.new do 721 while true 722 begin * 723 client = @socket.accept * 724 725 if $tcp_cork_opts 726 client.setsockopt(*$tcp_cork_opts) resc...
2006 Oct 25
14
[SEC] Mongrel Temporary Fix For cgi.rb 99% CPU DoS Attack
This is important so please read this message very carefully. There is a DoS for Ruby''s cgi.rb that is easily exploitable. The attack involves sending a malformed multipart MIME body in an HTTP request. The full explanation of the attack as well as how to fix it RIGHT NOW is given below. Most of the work was done by Jeremy Kemper and Jamis Buck. They did all the work of building the
2006 Oct 01
11
Mongrel woes fixed
...of work managing the queued up clients. -- Cheers, - Jacob Atzen -------------- next part -------------- Index: lib/mongrel.rb =================================================================== --- lib/mongrel.rb (revision 353) +++ lib/mongrel.rb (working copy) @@ -687,7 +687,6 @@ reap_dead_workers("max processors") else thread = Thread.new(client) {|c| process_client(c) } - thread.abort_on_exception = true thread[:started_on] = Time.now @workers.add(thread) -------------- next part -------------- --- sync.r...