Re: POST Body Truncated

2009-10-06 Thread Eric Wong
, are you running? I'd like to get to the bottom of this ASAP, thanks! -- Eric Wong ___ mongrel-unicorn mailing list mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn

Re: POST Body Truncated

2009-10-06 Thread Eric Wong
Chris Wanstrath ch...@ozmm.org wrote: On Tue, Oct 6, 2009 at 2:30 PM, Eric Wong normalper...@yhbt.net wrote: Thanks.  I'll take a look.  Do you have any example controllers/actions to reproduce this with so I can track this down easier?  (I completely understand if you can't share secrets

Re: POST Body Truncated

2009-10-06 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: Chris Wanstrath ch...@ozmm.org wrote: On Tue, Oct 6, 2009 at 2:50 PM, Eric Wong normalper...@yhbt.net wrote: No worries, I'm working on a a reproducible test case.  Can you try and see if you're using curl's -F to POST, you _don't_ hit

Re: POST Body Truncated

2009-10-06 Thread Eric Wong
Chris Wanstrath ch...@ozmm.org wrote: On Tue, Oct 6, 2009 at 3:52 PM, Eric Wong normalper...@yhbt.net wrote: OK, here's a workaround that should work for now.  I have to hit the road in a few minutes but will be back on a computer in a few hours. This only affects older Rails (and I'm

[ANN] unicorn 0.93.2 - more compatible with Rails

2009-10-07 Thread Eric Wong
minor documentation improvements. Eric Wong (8): Fix NEWS generation on single-paragraph tag messages Include GPLv2 in docs doc: make it clear contributors retain copyrights TODO: removed Rainbows! (see rainbows.rubyforge.org) Document the START_CTX hash contents

Re: Our Unicorn Setup

2009-10-09 Thread Eric Wong
the above setups are valid. The important part is that nginx must sit *somewhere* in between Unicorn and the rest of the world. -- Eric Wong ___ mongrel-unicorn mailing list mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel

Re: Our Unicorn Setup

2009-10-09 Thread Eric Wong
Dusty Doris unic...@dusty.name wrote: On Fri, Oct 9, 2009 at 6:01 PM, Eric Wong normalper...@yhbt.net wrote: Dusty Doris unic...@dusty.name wrote: 1.  Simply use mongrels upstream and let it round-robin between all the unicorn instances on the different servers?  Or, perhaps use the fair

[PATCH] README: alter reply conventions for the mailing list

2009-10-13 Thread Eric Wong
Mailman is now configured to munge Reply-To: to point back to the mailing list. This might make things easier for folks on low traffic mailing lists like ours. --- Eric Wong normalper...@yhbt.net wrote: Jeremy Evans jeremyeva...@gmail.com wrote: Eric, This and earlier replies

[PATCH] KNOWN_ISSUES: document Rack gem issue w/Rails 2.3.2

2009-10-16 Thread Eric Wong
In short: upgrade to Rails 2.3.4 (or later) ref: http://mid.gmane.org/20091014221552.ga30...@dcvr.yhbt.net Note: the workaround described in the article above only made the issue more subtle and we didn't notice them immediately. --- Eric Wong normalper...@yhbt.net wrote: Hi all, I

Re: Truncated request bodies

2009-10-24 Thread Eric Wong
/syswrite because I have a very intense and long-standing distrust of luserspace IO buffering libraries. -- Eric Wong ___ mongrel-unicorn mailing list mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn

Unicorn/Rainbows! mailing list migration

2009-10-29 Thread Eric Wong
as the Unicorn website). Should you ever want to access either of the sites offline, just make sure you have RDoc 2.4.x (gem install rdoc if you're on 1.8) and run `make doc' or `gmake doc' in the latest source tree. -- Eric Wong ___ mongrel-unicorn mailing list

Re: Unicorn/Rainbows! mailing list migration

2009-10-30 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: As I'm sure you've all heard by now, RubyForge will be moving to a read-only state and we'll have to migrate our mailing lists somewhere. OK, it looks like we'll be able to keep our mailing lists on RubyForge. http://tomcopeland.blogs.com/juniordeveloper

Re: unicorn, rails, and symlinked deployment

2009-11-17 Thread Eric Wong
/public_html/rm/current/config/unicorn.rb. If you don't start in your current symlink dir, 0.94.0 also got support for working_directory in your config file. -- Eric Wong ___ mongrel-unicorn mailing list mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman

Re: unicorn, rails, and symlinked deployment

2009-11-18 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: Michael Guterl mgut...@gmail.com wrote: cd ~/public_html/rm/current unicorn_rails -D -E production -c config/unicorn.rb I determined the -c config/unicorn.rb was the problem. If I change it to: unicorn_rails -D -E production -c ~/public_html

Re: Log File Location

2009-11-18 Thread Eric Wong
Michael Guterl mgut...@gmail.com wrote: On Wed, Nov 18, 2009 at 9:06 PM, Preston Marshall pres...@synergyeoc.com wrote: This may be a dumb question, but where can I see the error logs that are usually displayed when unicorn is not daemonized?  The production.log file is empty in my app.  

Re: Usernames in the http_URL

2009-12-19 Thread Eric Wong
URI.parse(http://..;) supports and pushed out the change. I've been meaning to make a few more small documentation updates and do a 0.95.3 release tomorrow when I'm more awake. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http

Re: unicorn -D always returns 0 success (even when failed to load)

2009-12-22 Thread Eric Wong
decide which code to return). Does it make sense? Thanks a lot. We avoid introducing command-line options since they're unlikely to be compatible with rackup parsing of the #\ lines in .ru files. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn

Re: How to trap USR2 for custom ussage ?

2009-12-24 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Miércoles, 23 de Diciembre de 2009, Eric Wong escribió: But again, you don't need to use DRb for this. As I've said in other thread I want DRb to get some info related to the application. A DRb client console could be used to check application

Re: unicorn -D always returns 0 success (even when failed to load)

2009-12-25 Thread Eric Wong
works for me for the two cases I explained in my previous mail. Of course it's an optional feature (I've implemented it with -M --min- running-time SECONDS in the options parser). I believe the nginx grace period is hard-coded at 5 seconds, which should be enough. -- Eric Wong

Re: Do we let Nginx to handle response Transfer-Encoding?

2009-12-27 Thread Eric Wong
, if you're building a Rack app from scratch. Some frameworks already handle Content-Length for you. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like

Re: Listening UNIX socket is not deleted when stopping Unicorn?

2009-12-28 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Lunes, 28 de Diciembre de 2009, Eric Wong escribió: Since there's absolutely no point in running Unicorn on port 80/443, you should just avoid user switching entirely since it'll significantly simplify your setup(s). The problem are init

Re: unicorn -D always returns 0 success (even when failed to load)

2009-12-28 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Lunes, 28 de Diciembre de 2009, Eric Wong escribió: It's really awesome! I've tested it and it works great, and avoids the sleeping stuff and a new commandlline option. Congratulations :) The current version is actually slightly buggy

Re: unicorn -D always returns 0 success (even when failed to load)

2009-12-28 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Lunes, 28 de Diciembre de 2009, Eric Wong escribió: Iñaki Baz Castillo i...@aliax.net wrote: El Lunes, 28 de Diciembre de 2009, Eric Wong escribió: As a suggestion, could the grandparent rescue such exception and display some kind

Re: Raised exceptions are not logged when USR2

2010-01-04 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Domingo, 3 de Enero de 2010, Eric Wong escribió: # Totally untested, stick this in your Unicorn config file and let # us know if it works or blows up badly: require 'syslog_logger' class MySyslogLogger SyslogLogger alias

Re: stderr_path doesn't work at the moment of being called

2010-01-05 Thread Eric Wong
paths, but some people like non-absolute ones for various reasons. So we always ensure stderr_path is set after working_directory is called. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman

Re: Unicorn, Rails and Memcached

2010-01-05 Thread Eric Wong
needed (inside the worker processes), but if you use memcached in your app initialization code, then the socket will be opened in the master process (which is bad). So the safe thing would be to reconnect to your memcached servers in the after_fork hook. -- Eric Wong

Re: 'before_fork' is execut ed in parallel by two processes ¿?

2010-01-05 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Martes, 5 de Enero de 2010, Eric Wong escribió: So I'm totally lost. However if I test my databases in before_fork then I see N number of DB connections (N = workers num). How are you testing the database? `` or via Ruby code? I use Ruby

Re: 'before_fork' is execut ed in parallel by two processes ¿?

2010-01-05 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Miércoles, 6 de Enero de 2010, Eric Wong escribió: Iñaki Baz Castillo i...@aliax.net wrote: El Martes, 5 de Enero de 2010, Eric Wong escribió: Yes, before_fork and after_fork are both called for every worker forked. So if I just want

Re: X-Forwarded-Proto / X_FORWARDED_PROTO

2010-01-09 Thread Eric Wong
to say that if there's an https *anywhere* in the X-Forwarded-Proto chain, that rack.url_scheme should be set to https? Because I suppose most of the time there's only one (client-facing) proxy using https. -- Eric Wong ___ Unicorn mailing list

Re: X-Forwarded-Proto / X_FORWARDED_PROTO

2010-01-09 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: Iñaki Baz Castillo i...@aliax.net wrote: In your case it seems valid for me (just an opinnion) as HTTP_X_FORWARDED_PROTO: http,https could mean that the request has been sent using HTTPS and an intermediary proxy has forwarded it using HTTP

Re: Issue when sending USR2 too soon

2010-01-18 Thread Eric Wong
some tools wanting the pid file earlier... I'll get back to this on Tuesday. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post

Re: Issue when sending USR2 too soon

2010-01-18 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Lunes, 18 de Enero de 2010, Eric Wong escribió: Iñaki Baz Castillo i...@aliax.net wrote: El Domingo, 17 de Enero de 2010, Iñaki Baz Castillo escribió: What about if Unicorn very quicky prepares the trap for USR2 so in case it receives

Re: Unicorn can't find gems?

2010-01-19 Thread Eric Wong
should fix things, just keep Rack 1.0.1 installed). I'll add this to the FAQ for now, not sure if there's a sane solution for it... -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel

[PATCH] initialize signal handlers before writing pid file

2010-01-19 Thread Eric Wong
to prevent all cases of this in one process, even in a purely C application, so we won't bother trying. We continue to always defer signal handling to the main loop anyways, and signals sent to the master process will be deferred/ignored until Unicorn::HttpServer#join is run. --- Eric Wong

Re: Getting a strange cookie error

2010-01-22 Thread Eric Wong
made those optimizations to Rack, too : -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: Getting a strange cookie error

2010-01-22 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: Travis Bell tra...@meticulo.com wrote: Just a follow up, it looks like it was rack 1.1.0 causing the issues. I uninstalled it, and am now using rack 1.0.1 and the error has gone away. Why it worked with Thin + Rack 1.1.0 and not Unicorn, still

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
John-Paul Bader h...@h3q.com wrote: To counter check I just built the latest ruby from source as well and the issue reappeared - so it happened between 26253 and tag/248 Keep in mind that 1.8.7-p248 is from the ruby_1_8_7 branch, not the ruby_1_8 branch which contains r26253. -- Eric Wong

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
it based on the EINVAL. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
John-Paul Bader h...@h3q.com wrote: Sorry one more: Is this something you will address sooner or later or is this a ruby on bsd bug? This bug actually affects anything that writes to sockets/pipes on BSD, not just Unicorn. So the patch should be backported to 1.8.7 upstream. -- Eric Wong

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
unistd system calls. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
to (eventually) retry on EAGAIN. I thought your diff was the ruby diff of r26253 and didn't realize it was yours ;) Actually, it's not mine, I just submitted the ticket that fixed one bug and introduced the one you hit :) -- Eric Wong ___ Unicorn

Re: Unicorn Tuning

2010-02-05 Thread Eric Wong
app_server { server unix:/tmp/.primary fail_timeout=0; server unix:/tmp/.backup fail_timeout=0 backup; } If you see lots of errors going to .primary, then you can try increasing the backlog for that to something you're more comfortable with. -- Eric Wong

Re: Confused classes

2010-02-06 Thread Eric Wong
processes, you'll need SysV/POSIX semaphores or file locks (flock/fcntl), but you're really better off using multiple TCP client sockets in the first place. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman

[ANN] unicorn 0.96.1 - leak fix for Rainbows!/Zbatery

2010-02-13 Thread Eric Wong
freed. The functions mark and free will be called from garbage collector. Yes, I suck at reading and can't write code properly as a result. * http://unicorn.bogomips.org/ * mongrel-unicorn@rubyforge.org * git://git.bogomips.org/unicorn.git -- Eric Wong

Re: Nginx Sock And Rails Envinroment Error

2010-02-14 Thread Eric Wong
faster :) -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: Nginx Sock And Rails Envinroment Error

2010-02-15 Thread Eric Wong
/unicorn.sock P.S.: I might not have a chance to respond again for the next day or so due to personal matters. Maybe somebody else on this list can help -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org

Re: Nginx Sock And Rails Envinroment Error

2010-02-17 Thread Eric Wong
Alex Barlow alexbarlo...@me.com wrote: Fixed it! Rails was considering all requests to be local. As the request was coming from the local ip (from nginx i assume) Awesome. Good to know, I've been setting these headers for so long that it's become second nature and I've forgotten about side

Re: Rails 3 RAILS_ENV not defined by config/boot error

2010-02-18 Thread Eric Wong
] ||= ENV[RACK_ENV] require config/environment use Rails::Rack::Static run ActionController::Dispatcher.new Let us know how it goes, thanks! -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn

Re: Launch Problem

2010-02-25 Thread Eric Wong
) Hi John, Unicorn itself doesn't use YAML anywhere, so you're probably just forgetting to load it somewhere in your config file: require 'yaml' Some servers (Mongrel, Thin) use YAML config files, so they would've already required 'yaml' for you. -- Eric Wong

Re: unicorn segfaulting on Array.shuffle under ruby 1.9.1

2010-03-14 Thread Eric Wong
up with a report to ruby-core/redmine -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: Newbie problems

2010-03-16 Thread Eric Wong
but can't find anything that is specific to this issue. No worries. Also, if you leave out the -D switch, you can try truss/strace/dtrace-ing the process if you still don't get enough information. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn

Re: Unicorn 0.97.0 old master is never dying

2010-03-19 Thread Eric Wong
gha...@gmail.com wrote: On Thu, Mar 18, 2010 at 1:40 AM, Eric Wong normalper...@yhbt.net wrote: gha...@gmail.com wrote: I upgraded to Unicorn 0.97.0 from 0.96.1. Unicorn starts fine, but sending a USR2 to the 0.97.0 master launches a new master and all the workers, but never kills the old

Re: Nginx Socket with Multiple Unicorn instances

2010-04-05 Thread Eric Wong
However, if your apps (or dependent libraries/frameworks) share any global resources in an unintended or unsafe manner, then you won't be able to do this. The above example is of course highly trivial. -- Eric Wong ___ Unicorn mailing list - mongrel

Re: funky process tree + stillborn masters

2010-04-11 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: Do the following two patches help? I've also pushed out a few cleanups to unicorn.git and also put up a prerelease gem at: Hi Jamie, did you get a chance to try this? -- Eric Wong ___ Unicorn mailing list

Re: Using HTTP/1.1 and permanent connections

2010-04-16 Thread Eric Wong
you'll get proper HTTP/1.1 keepalive support and you can control keepalive_timeout: # both of these values are the defaults for unconfigured Rainbows! Rainbows! do use :Base keepalive_timeout 5 end -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn

Re: funky process tree + stillborn masters

2010-04-19 Thread Eric Wong
Hi Jamie, any more news on this issue? I plan on doing a minor release later today or tomorrow with a few minor bug fixes in unicorn.git -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [PATCH] Add worker interrogation via INFO signals

2010-04-27 Thread Eric Wong
of the proposed middleware solution. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: funky process tree + stillborn masters

2010-04-28 Thread Eric Wong
inherent to Unicorn that prevents it from playing nicely with threads. It's just not playing nicely with threaded code written without potential fork() calls in mind. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org

[ANN] unicorn 0.98.0 - Rack HTTP server for fast clients and Unix

2010-05-04 Thread Eric Wong
the final CRLF. This shouldn't affect any real and RFC-compliant clients out there. Chunked requests with trailers have always worked and continue to work the same way. The rest are mostly small internal cleanups and documentation fixes. See the commit logs for full details. -- Eric Wong

Re: Garbage collection outside of request cycle?

2010-05-06 Thread Eric Wong
_process_client process_client undef_method :process_client def process_client(client) _process_client(client) REQ.clear GC.start end end if defined?(Unicorn) -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http

Re: [ANN] unicorn 0.99.0 - simplicity wins

2010-05-06 Thread Eric Wong
this in the Unicorn config file: Unicorn::HttpServer::START_CTX[0] = /some/path/to/bin/unicorn -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one

Re: Garbage collection outside of request cycle?

2010-05-06 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: I guess I should throw this into the examples section Added a few more comments, but the code is still the same: http://unicorn.bogomips.org/examples/big_app_gc.rb http://git.bogomips.org/cgit/unicorn.git/commit/?id=510a48dafc5f7e2cb618d785885395c79570821c

Sandbox (bundler+isolate) tips RDoc added

2010-05-07 Thread Eric Wong
http://unicorn.bogomips.org/Sandbox.html Please send patches/pull requests for any more tips you'd like to share, including for similar tools. Thanks to Jamie Wilkinson for the Bundler tips! -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn

Re: Some issues in the HTTP parser (and suggestions)

2010-05-08 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: 2010/5/7 Eric Wong normalper...@yhbt.net: Underscore isn't valid for hostnames, but it is allowed in domain names and most DNS servers will resolve them.  I've personally seen websites with underscores in their domain names in the wild[1]. Hi Eric

testing, ignore

2010-05-08 Thread Eric Wong
(somebody had a stupid autoreply on, I subscribed them) ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

bizarre autoresponder [was: Re: testing, ignore]

2010-05-08 Thread Eric Wong
, there's no chance in hell I'd use anything other than email for bug-tracking/support here. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one

Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Eric Wong
Hi, HTML attachments are wasteful and thus rejected from the mailing list. On the other hand, it actually helps to include the patch itself (inline) so it's readable without a (human) context switch :) - Forwarded message from Pierre Baillet o...@fotonauts.com - Subject: Fwd: Support

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Eric Wong
to block/catch/ignore those signals, so we rely on the master process to deliver them. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one

Re: Read error: #TypeError: can't modify frozen string raised from HttpParser

2010-06-07 Thread Eric Wong
it is extremely unusual. We were getting it from a crappy bot. ref: http://mid.gmane.org/aanlktimuggcwnamcvzdvifwdf-ucw_rgyzaue7phu...@mail.gmail.com Acked-by: Eric Wong normalper...@yhbt.net --- ext/unicorn_http/unicorn_http.rl |9 + test/unit/test_http_parser_ng.rb | 20

[ANN] unicorn 0.990.0 - inching towards 1.0

2010-06-08 Thread Eric Wong
/evanphx/rubinius/issues/356 [8] - http://github.com/evanphx/rubinius/issues/347 [9] - mailto:mongrel-unicorn@rubyforge.org [a] - mailto:unic...@bogomips.org -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org

Re: unicorn_rails cleanup (possible fix for Rails3) pushed

2010-06-08 Thread Eric Wong
Hongli Lai hon...@phusion.nl wrote: On Tue, Jun 8, 2010 at 9:20 PM, Eric Wong normalper...@yhbt.net wrote: Thanks Hongli, so this only affects people who remove the config.ru that Rails 3 creates for them?  Yikes... No. The problem even occurs if you already have config.ru. But the thing

unicorn prerelease 0.990.0.5.gbfb1

2010-06-08 Thread Eric Wong
Hi all, I decided to try out the prerelease feature of Rubygems for the first time, it seems to work... So yes, gem install --pre unicorn if you're using Rails 3 (and probably like to type 'rm config.ru' :) Same list of changes since v0.990.0: Eric Wong (4): t0300: Rails 3 test

Re: Working directory and config.ru

2010-06-09 Thread Eric Wong
parsing is done much later than the current config.ru location attempt. Hi Pierre, Oops, definitely not wanted behavior. Unicorn should honor working_directory with regard to config.ru. I'll start working on a fix shortly, thanks for the report! -- Eric Wong

Re: [ANN] unicorn 0.990.0 - inching towards 1.0

2010-06-10 Thread Eric Wong
Alexander Simonov a...@simonov.me wrote: On Jun 10, 2010, at 10:38 AM, Eric Wong wrote: And again (I seem to remember saying this months ago), any time you're deploying, you should be paying extra attention to the app anyways. That means testing with actual HTTP requests, not just seeing

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-10 Thread Eric Wong
in the child. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: [Rails 3] Unicorn log output

2010-07-06 Thread Eric Wong
to fix it :). -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

[ANN] unicorn 1.1.0 - small changes and cleanups

2010-07-08 Thread Eric Wong
servers. There is no need to upgrade if you're happy with 1.0.0, but also little danger in upgrading. There is one pedantic bugfix which shouldn't affect anyone and small documentation updates as well. -- Eric Wong ___ Unicorn mailing list - mongrel

[ANN] unicorn 1.0.1 and 1.1.2 - fix rollbacks

2010-07-13 Thread Eric Wong
the the request and response in between Unicorn and slow clients. * http://unicorn.bogomips.org/ * mongrel-unicorn@rubyforge.org * git://git.bogomips.org/unicorn.git -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman

Re: [ANN] unicorn 1.0.1 and 1.1.2 - fix rollbacks

2010-07-13 Thread Eric Wong
a similar line in the unicorn_setup() function of test-lib.sh -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: Problem with x-www-form-urlencoded

2010-07-15 Thread Eric Wong
this, and is there a solution? I haven't seen nor looked into this myself, but I've heard some talk of multipart oddness in the Rack mailing list -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do

Re: Problem with x-www-form-urlencoded

2010-07-15 Thread Eric Wong
it could be a big upload that uses all your memory. What are you using that does request.body.to_s? Can you change it? -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote

Re: TTIN after WINCH

2010-07-15 Thread Eric Wong
logger.info SIGWINCH ignored because we're not daemonized end when :TTIN +respawn = true self.worker_processes += 1 when :TTOU self.worker_processes -= 1 if self.worker_processes 0 -- Eric Wong

Re: Problem with x-www-form-urlencoded

2010-07-16 Thread Eric Wong
Richard Penwell almightylinux...@me.com wrote: On Jul 15, 2010, at 6:40 PM, Eric Wong normalper...@yhbt.net wrote: Richard Penwell almightylinux...@me.com wrote: So I discovered this was a problem whereby request.body.to_s behaves differently. I wonder if TeeStream should define to_s

Re: TTIN after WINCH

2010-07-16 Thread Eric Wong
Lawrence Pit lawrence@gmail.com wrote: Hi Eric, Confirmed. Works for me. Thanks Lawrence, patch and test pushed up to unicorn.git -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: Autokill Workers which have grown too big

2010-07-30 Thread Eric Wong
-readable) /proc/$$/status to get current memory usage. There's also the sys-proctable gem, too, which I haven't used. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote

Re: javascript disappears

2010-08-17 Thread Eric Wong
recipes they can share. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: javascript disappears

2010-08-18 Thread Eric Wong
master doesn't get affected by environment (or any other local) changes in before_exec. before_exec only runs in the new master process, so it can only affect the new master process (unless it sends signals to the old master). -- Eric Wong ___ Unicorn

Re: Unicorn and home_run

2010-08-24 Thread Eric Wong
libraries. Are you starting it with home_run unicorn_rails or did you install it system-wide? Jeremy: would it be easier for home_run to just require the core-Ruby classes first and then monkey patch the methods individually? I haven't gotten a chance to look into home_run myself much. -- Eric Wong

Re: Unicorn and home_run

2010-08-25 Thread Eric Wong
. Thanks. I'd be eager to hear how it works out since this could be a popular library very soon :) Is there a home_run mailing list I could follow? -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman

Re: Unicorn and home_run

2010-08-25 Thread Eric Wong
Jeremy Evans jeremyeva...@gmail.com wrote: On Wed, Aug 25, 2010 at 12:50 AM, Eric Wong normalper...@yhbt.net wrote: Yeah, I figured using the home_run wrapper would be less than ideal since it would get lost during exec upgrades and newer versions of home_run wouldn't get picked up the same

Re: Hello excellent friends

2010-08-31 Thread Eric Wong
for your great work cleaning mongrel into a first class unix friend. You're welcome! -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top

Re: Unicorn fails to restart gracefully on capistrano deploy

2010-09-15 Thread Eric Wong
00:00:00 2001 From: Eric Wong normalper...@yhbt.net Date: Wed, 15 Sep 2010 14:42:54 -0700 Subject: [PATCH] doc: update Sandbox document for Bundler Thanks to Lawrence Pit, Jamie Wilkinson, and Eirik Dentz Sinclair. ref: mid.gmane.org/4c8986da.7090...@gmail.com ref: mid.gmane.org/5f1a02db-cbda-4302

[ANN] kgio library / RubyGem

2010-09-27 Thread Eric Wong
://git.bogomips.org/kgio.git http://git.bogomips.org/cgit/kgio.git [1] - http://thread.gmane.org/gmane.comp.lang.ruby.core/30854 [2] - http://thread.gmane.org/gmane.comp.lang.ruby.core/31801 -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn

Re: Unicorn doesn't reload the app after the HUP signal

2010-10-02 Thread Eric Wong
Rubén Dávila ruben.grung...@gmail.com wrote: Hi folks, I've experimented a problem while deploying my app, I've sent the HUP signal to the master process, I've checked everything is ok: new master and workers are spawned and the old ones are killed(I've checked the PIDs), but the new code

Re: Problem with binding UNIX listeners before checking PID

2010-10-03 Thread Eric Wong
to always be right, just less bad/broken than the alternatives. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when

[ANN] unicorn 1.1.4 - small bug fix and doc updates

2010-10-04 Thread Eric Wong
@rubyforge.org * git://git.bogomips.org/unicorn.git -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

[ANN] unicorn 2.0.0pre1 - a boring major release

2010-10-05 Thread Eric Wong
machines with a few hundred processors until a later release. Expect Rainbows! to see some changes/improvements in the days to come, too. * http://unicorn.bogomips.org/ * mongrel-unicorn@rubyforge.org * git://git.bogomips.org/unicorn.git -- Eric Wong

[ANN] Unicorn 2.0.0, 1.1.5, 1.0.2 released!

2010-10-27 Thread Eric Wong
are fixed, too. == unicorn 1.0.2 This is the latest maintenance release of the 1.0.x series. All users are encouraged to upgrade to 1.1.x stable series and report bugs there. Shortlog of changes since 1.0.1: Eric Wong (8): SIGTTIN works after SIGWINCH fix delays in signal handling

Re: Unicorn Bug tracking?

2010-11-03 Thread Eric Wong
-posting, quote only what you reply to). Despite this being a web server project, I (the project leader) strongly dislike dealing with HTML form elements and interactive web interfaces in general. -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn

Re: AMQP and Unicorn (mq gem)

2010-11-09 Thread Eric Wong
before_fork config *should* work for you. Let us know how it goes! -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

  1   2   3   4   5   >