search for: http_server

Displaying 20 results from an estimated 25 matches for "http_server".

2012 Feb 29
2
[PATCH] Start the server if another user has a PID matching our stale pidfile.
If unicorn doesn''t get terminated cleanly (for example if the machine has its power interrupted) and the pid in the pidfile gets used by another process, the current unicorn code will exit and not start a server. This tiny patch fixes that behaviour. --- lib/unicorn/http_server.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 7d2c623..0c2af5d 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -656,7 +656,7 @@ class Unicorn::HttpServer wpid <= 0 and re...
2012 Apr 27
14
app error: Socket is not connected (Errno::ENOTCONN)
...to the mailing list. 16:48:42 web.1 | E, [2012-04-26T16:48:42.733954 #87940] ERROR -- : app error: Socket is not connected (Errno::ENOTCONN) 16:48:42 web.1 | E, [2012-04-26T16:48:42.734193 #87940] ERROR -- : /Users/jnimety/.rvm/gems/ruby-1.9.3-p125 at control/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:539:in `shutdown'' 16:48:42 web.1 | E, [2012-04-26T16:48:42.734343 #87940] ERROR -- : /Users/jnimety/.rvm/gems/ruby-1.9.3-p125 at control/gems/unicorn-4.3.0/lib/unicorn/http_server.rb:539:in `process_client'' 16:48:42 web.1 | E, [2012-04-26T16:48:42.734517 #87940] ERROR -...
2013 Nov 01
7
[PATCH] construct listener_fds Hash in 1.8 compatible way
This renables the ability for Ruby 1.8 environments to perform reexecs --- lib/unicorn/http_server.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 2decd77..9a5795c 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -449,13 +449,14 @@ class Unicorn::HttpServer end self....
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
...lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:127:in `establish_connection'' config/unicorn.rb:54:in `block in reload'' /home/frankr/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:565:in `call'' /home/frankr/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:565:in `init_worker_process'' /home/frankr/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:589:in `worker_loop'...
2013 Sep 20
3
[PATCH] preload_app can take an optional block for warmup
--- lib/unicorn/configurator.rb | 19 ++++++++++++++++--- lib/unicorn/http_server.rb | 3 +++ test/unit/test_configurator.rb | 8 ++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 0d0eac7..a0ae576 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -441,9 +441,2...
2012 Dec 05
3
Fwd: Issue starting unicorn with non-ActiveRecord Rails app
...5096] INFO -- : master process ready E, [2012-12-05T04:19:33.108183 #5110] ERROR -- : uninitialized constant ActiveRecord (NameError) /var/www/webapps/fugu-cp/current/config/unicorn.rb:68:in `block in reload'' /var/www/webapps/fugu-cp/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:569:in `call'' /var/www/webapps/fugu-cp/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:569:in `init_worker_process'' /var/www/webapps/fugu-cp/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:593:in `worker_loop'' /var/www/weba...
2012 Mar 22
1
[PATCH] make stderr_path/stdout_path support IO objects directly
--- lib/unicorn/configurator.rb | 2 +- lib/unicorn/http_server.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 89cbf5c..c9b6816 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -559,7 +559,7 @@ private def set_path(var, path) #:no...
2007 Apr 10
1
Add support for Variables
Was just looking at a number of my scripts ( due to having to update them for RH5). Would it be possible to add support for variables / 2 variables HTTP_SERVER (scope should be global in "default" but local elsewhere, could maybe pe passed as an argument to vesamenu.c32 and menu.c32 (i think its only of use for people using these files.)) KICKSTART_DIR (this name should be more generic, and should only have local scope) if in "default&...
2011 Sep 06
1
Workers getting broken after some time
...ck-1.1.2/lib/rack/urlmap.rb:47:in `block in call'' /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `each'' /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `call'' /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:528:in `process_client'' /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:600:in `worker_loop'' /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:485:in `spawn_missing_workers'' /usr/local/lib/ruby/gems/1.9.1/gems/...
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''...
2011 Jan 06
1
[PATCH] close client socket after closing response body
...011 22:39:03 -0800 Subject: [PATCH] close client socket after closing response body Response bodies may capture the block passed to each and save it for body.close, so don''t close the socket before we have a chance to call body.close --- lib/unicorn/http_response.rb | 1 - lib/unicorn/http_server.rb | 1 + t/t0018-write-on-close.sh | 23 +++++++++++++++++++++++ t/write-on-close.ru | 11 +++++++++++ (Unnecessary unit test case omitted for email) test/unit/test_response.rb | 18 +++++++++--------- 5 files changed, 44 insertions(+), 10 deletions(-) create mode 1007...
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'' f...
2013 Nov 05
4
Handling closed clients
...ed before the response can be written. It changes the behavior of the ''test_client_shutdown_write_truncates'' test, but I believe the change makes sense. If the client socket is still open for writing, unicorn should write the response. Thoughts? --drew diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 402f133..3620427 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -547,8 +547,6 @@ class Unicorn::HttpServer # the socket is closed at the end of this function def handle_error(client, e) code = case e - when EOFError,Errno::ECONNRESE...
2008 May 05
11
puppetmasterd --mkusers
I''m trying to run puppetmasterd the first time with --mkusers. It fails with the following error message: 001 # /usr/bin/puppetmasterd --mkusers Could not configure for running; got 1 failure(s) Adding --verbose and --debug does nothing to improve the output. How do I begin to debug this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...tch/middleware/static.rb:64:in `call'' railties (4.0.0.beta1) lib/rails/engine.rb:510:in `call'' railties (4.0.0.beta1) lib/rails/application.rb:96:in `call'' railties (4.0.0.beta1) lib/rails/railtie/configurable.rb:30:in `method_missing'' unicorn (4.6.2) lib/unicorn/http_server.rb:552:in `process_client'' unicorn (4.6.2) lib/unicorn/http_server.rb:632:in `worker_loop'' unicorn (4.6.2) lib/unicorn/http_server.rb:500:in `spawn_missing_workers'' unicorn (4.6.2) lib/unicorn/http_server.rb:511:in `maintain_worker_count'' unicorn (4.6.2) lib/unic...
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...gnal was for a) graceful unicorn shutdown or b) oh-noes-I-started-a-bad-query-ABORT-ABORT-ABORT!! --- Pushed to master on git://bogomips.org/unicorn.git commit 6f6e4115b4bb03e5e7c55def91527799190566f2 SIGNALS | 6 ++++ lib/unicorn.rb | 5 +++ lib/unicorn/http_server.rb | 85 +++++++++++++++++++++++----------------------- lib/unicorn/worker.rb | 64 ++++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+), 42 deletions(-) diff --git a/SIGNALS b/SIGNALS index 48c651e..ef0b0d9 100644 --- a/SIGNALS +++ b/SIGNALS @@ -45,6 +45,10 @@ http://unicorn...
2011 Aug 12
16
Rack content-length Rack::Lint::LintErrors errors with unicorn
...mnt/data/tanga/current/bundler/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lint.rb:525:in `each'' /mnt/data/tanga/current/bundler/ruby/1.9.1/gems/unicorn-4.0.1/lib/unicorn/http_response.rb:41:in `http_response_write'' /mnt/data/tanga/current/bundler/ruby/1.9.1/gems/unicorn-4.0.1/lib/unicorn/http_server.rb:526:in `process_client'' /mnt/data/tanga/current/bundler/ruby/1.9.1/gems/unicorn-4.0.1/lib/unicorn/http_server.rb:585:in `worker_loop'' /mnt/data/tanga/current/bundler/ruby/1.9.1/gems/newrelic_rpm-3.0.1/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:12:in `call...
2011 Oct 08
5
How to automate the restarting of Unicorn?
Hi, I have a question about automating the restarting of Unicorn with the following steps, and much appreciate your help. Assumption: (i) "pid" is set to unicorn.pid in the config file; (ii) a Unicorn process is already running. (1) kill -USR2 `cat unicorn.pid` (via Capistrano deployment task for example) (2) Inside the "before_exec" hook in the config file, do: kill -QUIT
2011 Jun 16
7
[PATCH] replace fchmod()-based heartbeat with raindrops
...ation on raindrops, see the raindrops website http://raindrops.bogomips.org/ and/or email the mailing list if you have questions, comments, patches, etc: raindrops at librelist.org (I''ll also respond to email about raindrops here) DESIGN | 8 ------- lib/unicorn/http_server.rb | 48 +++++++++++++----------------------------- lib/unicorn/worker.rb | 49 ++++++++++++++++++++++++++++++++++++++++--- script/isolate_for_tests | 1 + test/unit/test_droplet.rb | 28 +++++++++++++++++++++++++ unicorn.gemspec | 1 + 6 files changed, 90 insertions(...
2013 May 25
1
Silent Failure when starting Unicorn on Heroku
...umentError) from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/configurator.rb:77:in `reload'' from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/configurator.rb:68:in `initialize'' from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:108:in `new'' from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:108:in `initialize'' from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/bin/unicorn:126:in `new'' from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.2/bin/unicorn:126:...