search for: kgio

Displaying 13 results from an estimated 13 matches for "kgio".

Did you mean: gio
2010 Sep 28
3
kgio library / RubyGem
Hello all, I''ve released kgio, a kinder, gentler I/O library for Ruby. Some of its features are useful for Unicorn, and all of it is useful for Rainbows! I intend to make kgio a requirement for both Unicorn and Rainbows!/Zbatery. I''m comfortable with the code, but extra testers and extra eyes to review it would be h...
2011 Mar 14
3
Kgio - ERROR: Failed to build gem native extension.
Hello guys, I am not able to install kgio. Kgio not working on windows? I''m using: rails 3.0.5 ruby 192 gem 1.6.2 Windows XP. C:\Ruby192\bin>gem install kgio Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing kgio: ERROR: Failed to build g...
2010 Nov 20
6
unicorn 3.0.0 - disable rewindable input!
...hanges: Rewindable "rack.input" may be disabled via the "rewindable_input false" directive in the configuration file. This will violate Rack::Lint for Rack 1.x applications, but can reduce I/O for applications that do not need a rewindable input. This release updates us to the Kgio 2.x series which should play more nicely with other libraries and applications. There are also internal cleanups and improvements for future versions of Rainbows! The Unicorn 3.x series supercedes the 2.x series while the 1.x series will remain supported indefinitely. * http://unicorn.bogomips.o...
2011 Sep 03
0
Nightmare! - an nginx alternative for unicorn
...is kept to a minimum; if it can''t fit into generously-sized skbs (at least on modern Linux), it''ll be buffered to the _filesystem_ (which may be tmpfs or a real FS with dirty ratios cranked up). HTTPS support is planned/wired. Somebody with SSL/crypto knowledge needs to review {kgio-monkey}[http://bogomips.org/kgio-monkey/] before it can be trusted. V nz n zbaxrl! Qb abg gehfg zl pbqr! Since Nightmare! already uses sendfile to serve buffers, a "try_files" directive will be added to bypass Rack for simple static file serving. It will not serve directory indices no...
2011 Sep 15
0
SSL support pushed out to unicorn.git :x
Consider this a joke until somebody who knows crypto well can review it (_and_ kgio-monkey[1]). I know it works with curl (test case included) and I can''t see plain-text when I strace/tcpdump, that''s about it :) Subject: [PATCH] add preliminary SSL support This will also be the foundation of SSL support in Rainbows! and Zbatery. Some users may also want to us...
2011 Jul 25
2
SIGTERM not actually killing processes
Hi, Unicorn is saying it''s terminating but it''s not actually. Check out the gist:?https://gist.github.com/1104930 Using: - Ruby 1.9.2p180 - unicorn 4.0.1 - kgio 2.6.0 - bundler 1.0.15 - Linux maynard 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Please let me know if there''s any other info I can provide. Thanks, Jesse -------------------------------------------- Jesse Cooke ::?N-tier Engineer jc00ke....
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
...+151,9 @@ module Unicorn File.umask(old_umask) end elsif /\A\[([a-fA-F0-9:]+)\]:(\d+)\z/ =~ address - new_ipv6_server($1, $2.to_i, opt) + new_tcp_server($1, $2.to_i, opt.merge(:ipv6=>true)) elsif /\A(\d+\.\d+\.\d+\.\d+):(\d+)\z/ =~ address - Kgio::TCPServer.new($1, $2.to_i) + new_tcp_server($1, $2.to_i, opt) else raise ArgumentError, "Don''t know how to bind: #{address}" end @@ -152,13 +161,18 @@ module Unicorn sock end - def new_ipv6_server(addr, port, opt) - opt.key?(:i...
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...6 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -97,6 +97,11 @@ module Unicorn logger.error "#{prefix}: #{message} (#{exc.class})" exc.backtrace.each { |line| logger.error(line) } end + + # remove this when we only support Ruby >= 2.0 + def self.pipe # :nodoc: + Kgio::Pipe.new.each { |io| io.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) } + end # :startdoc: end # :enddoc: diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index f15c8a7..ae8ad13 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -42,16 +42,8 @@ class U...
2013 Jan 24
2
SIGSEGV at shutdown (was: Re: your mail)
...ndle/ruby/1.9.1/gems/json-1.7.4/ext/json/ext/generator/generator.so vendor/bundle/ruby/1.9.1/gems/json-1.7.4/ext/json/ext/parser/parser.so vendor/bundle/ruby/1.9.1/gems/json-1.7.4/lib/json/ext/generator.so vendor/bundle/ruby/1.9.1/gems/json-1.7.4/lib/json/ext/parser.so vendor/bundle/ruby/1.9.1/gems/kgio-2.7.4/ext/kgio/kgio_ext.so vendor/bundle/ruby/1.9.1/gems/kgio-2.7.4/lib/kgio_ext.so vendor/bundle/ruby/1.9.1/gems/raindrops-0.10.0/ext/raindrops/raindrops_ext.so vendor/bundle/ruby/1.9.1/gems/raindrops-0.10.0/lib/raindrops_ext.so vendor/bundle/ruby/1.9.1/gems/unicorn-4.3.1/ext/unicorn_http/unicorn_...
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like rails server Could not find pg-0.12.2 in any of the sources Run `bundle install` to install missing gems. I dont know what to do Thanks for all the help -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2013 Nov 05
4
Handling closed clients
...r # try to tell the client they''re bad 400 else - Unicorn.log_error(@logger, "app error", e) - 500 + if client.closed? + # client disconnected on us and there''s nothing we can do + else + Unicorn.log_error(@logger, "app error", e) + 500 + end end if code client.kgio_trywrite(err_response(code, @request.response_start_sent)) diff --git a/test/unit/test_server.rb b/test/unit/test_server.rb index e5b335f..2fca1b4 100644 --- a/test/unit/test_server.rb +++ b/test/unit/test_server.rb @@ -145,8 +145,7 @@ class WebServerTest < Test::Unit::TestCase # processing on u...
2012 Apr 12
8
Background jobs with #fork
Hi I''ve migrated from Passenger to Unicorn about a week ago. It''s great. Great transparency and management, thanks for this great software! A few of my Rails applications start background jobs using Kernel#fork. Of course, the ActiveRecord connections are closed and reopened again in the parent and child processes. The child process also does its job. Unfortunately, it seems
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 ==...