unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
						download: 
* [ANN] unicorn 0.93.0
@ 2009-10-02 21:44 Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2009-10-02 21:44 UTC (permalink / raw)
  To: mongrel-unicorn

More small fixes and documentation improvements in this release, things
have settled down a lot since 0.90.0 in August and we've mainly been
focusing on documentation, minor UI improvements and the occasional
minor bugfix as they get reported.

Changes:

  The one minor bugfix is only for Rails 2.3.x+ users who set the
  RAILS_RELATIVE_URL_ROOT environment variable in a config file.
  Users of the "--path" switch or those who set the environment
  variable in the shell were unaffected by this bug.  Note that we
  still don't have relative URL root support for Rails < 2.3, and
  are unlikely to bother with it unless there is visible demand
  for it.

  New features includes support for :tries and :delay when
  specifying a "listen" in an after_fork hook.  This was inspired
  by Chris Wanstrath's example of binding per-worker listen
  sockets in a loop while migrating (or upgrading) Unicorn.
  Setting a negative value for :tries means we'll retry the listen
  indefinitely until the socket becomes available.

  So you can do something like this in an after_fork hook:

      after_fork do |server, worker|
        addr = "127.0.0.1:#{9293 + worker.nr}"
        server.listen(addr, :tries => -1, :delay => 5)
      end

  There's also the usual round of added documentation, packaging
  fixes, code cleanups, small fixes and minor performance
  improvements that are viewable in the "git log" output.

* site: http://unicorn.bogomips.org/
* git: git://git.bogomips.org/unicorn.git
* cgit: http://git.bogomips.org/cgit/unicorn.git/
* list: mongrel-unicorn@rubyforge.org
* nntp: nntp://news.gmane.org/gmane.comp.lang.ruby.unicorn.general
* finger: unicorn@bogomips.org

-- 
Eric Wong

^ permalink raw reply	[relevance 6%]

* Re: Unicorn Nginx Issue
      [irrelevant]     ` <91d915350910131034t5dabb51eo5cde67397612f9f4@mail.gmail.com>
@ 2009-10-13 18:53       ` Eric Wong
  2009-10-13 19:03         ` Matt Mongeau
  0 siblings, 1 reply; 3+ results
From: Eric Wong @ 2009-10-13 18:53 UTC (permalink / raw)
  To: unicorn general mailing list

Matt Mongeau <halogenandtoast@gmail.com> wrote:

Hi Matt, please don't top post, thanks.

> Got it working, I had a bad value in my config.
> 
> I had
> listen '/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock',
> :backlog => 1024
> I guess I needed
> listen 'unix:/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock',
> :backlog => 1024

Both values you had above really should just work.  Assuming you've
installed unicorn (>= 0.93.0) as a gem, can you run:

  gem check -t unicorn

and tell me if it passes?  If you installed from the tgz or git, you can
also try running the following from the source tree:

   make test/unit/test_configurator.rb

Thanks.

-- 
Eric Wong

^ permalink raw reply	[relevance 7%]

* Re: Unicorn Nginx Issue
  2009-10-13 18:53       ` Unicorn Nginx Issue Eric Wong
@ 2009-10-13 19:03         ` Matt Mongeau
  0 siblings, 0 replies; 3+ results
From: Matt Mongeau @ 2009-10-13 19:03 UTC (permalink / raw)
  To: unicorn general mailing list

sudo gem check -t unicorn

fails

Failure:
test_rack_lint_big_put(RequestTest) [./test/unit/test_request.rb:178]:
<nil> expected but was
<"

followed by lots whitespace

">.
Error:
test_expand_addr(TestConfigurator):
SocketError: getaddrinfo: nodename nor servname provided, or not known
    /opt/local/lib/ruby/gems/1.8/gems/unicorn-0.93.2/lib/unicorn/configurator.rb:346:in
`pack_sockaddr_in'
    /opt/local/lib/ruby/gems/1.8/gems/unicorn-0.93.2/lib/unicorn/configurator.rb:346:in
`expand_addr'
    ./test/unit/test_configurator.rb:35:in `call'
    ./test/unit/test_configurator.rb:35:in `test_expand_addr'
ERROR:  98 tests, 4748 assertions, 1 failures, 1 errors


On Tue, Oct 13, 2009 at 2:53 PM, Eric Wong <normalperson@yhbt.net> wrote:
> Matt Mongeau <halogenandtoast@gmail.com> wrote:
>
> Hi Matt, please don't top post, thanks.
>
>> Got it working, I had a bad value in my config.
>>
>> I had
>> listen '/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock',
>> :backlog => 1024
>> I guess I needed
>> listen 'unix:/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock',
>> :backlog => 1024
>
> Both values you had above really should just work.  Assuming you've
> installed unicorn (>= 0.93.0) as a gem, can you run:
>
>  gem check -t unicorn
>
> and tell me if it passes?  If you installed from the tgz or git, you can
> also try running the following from the source tree:
>
>   make test/unit/test_configurator.rb
>
> Thanks.
>
> --
> Eric Wong
> _______________________________________________
> mongrel-unicorn mailing list
> mongrel-unicorn@rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-unicorn
>

^ permalink raw reply	[relevance 0%]

Results 1-3 of 3 | reverse results
2009-10-02 21:44 [ANN] unicorn 0.93.0 Eric Wong
    [irrelevant] <91d915350910130957w6a5412f9w8e13ef1d0167ee40@mail.gmail.com>
    [irrelevant] ` <0AFCBD06-4CB0-42FE-B3D8-0A6AFCF89962@gmail.com>
    [irrelevant]   ` <91d915350910131027g6a3e9704r5becf0d2e7402e39@mail.gmail.com>
    [irrelevant]     ` <91d915350910131034t5dabb51eo5cde67397612f9f4@mail.gmail.com>
2009-10-13 18:53       ` Unicorn Nginx Issue Eric Wong
2009-10-13 19:03         ` Matt Mongeau


unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.unicorn

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git