about summary refs log tree commit homepage
DateCommit message (Collapse)
2009-03-10HttpRequest: update comment regarding short writes v0.1.0
Or lack thereof on POSIX.
2009-03-10HttpRequest: set binmode on tempfiles
Just in case this stupid Ruby 1.9-ism creeps up on someone; I haven't been able to reproduce I/O corruption from the test cases, but better safe than sorry here.
2009-03-10http11: mark private methods as static
There's no point in increasing method visibility since it can cause conflicts with other libraries and reduces the inlining opportunities the compiler can make.
2009-03-10http11: remove unnecessary CPP definitions
2009-03-09update TODO
2009-03-09Remove sinatra example
It is no longer relevant (or working) with rackup compatibility.
2009-03-09Add -s/--server switch for compatibility with rackup
This allows config.ru files to be shared by rackup and unicorn without errors.
2009-03-09Documentation updates
Reformat README to avoid preformatted text. Document signal handling in SIGNALS. Split out DESIGN, it's probably not as useful to end-users Update CONTRIBUTORS LICENSE: copyright is for me (Eric Wong), not Zed since this is a Mongrel fork.
2009-03-09Configurator: document reasons for lowering backlog
2009-03-09test_exec: increase backlog to 128
Hopefully this increases test reliability
2009-03-09Revert "Remove -P/--pid switch from CLI"
This reverts commit 4414d9bf34f162a604d2aacc765ab1ca2fc90404.
2009-03-09Revert "exec: disable embedded switch parsing in config.ru"
This reverts commit e66ab79b8b5bc5311c750bf03868a7b2574f4ea1. Conflicts: bin/unicorn
2009-03-09Unicorn::Configurator: documentation
2009-03-09Remove COPYING, it is redundant with LICENSE
The LICENSE file is pretty much the same text, so there's no point in having both files other than making the licensing terms ambiguous. COPYING only specifies "GPL" while LICENSE specifies "GPL2" specifically.
2009-03-09Force rdoc 2.4.1 to run for me
Echoe/Rake seems to be loading the wrong version, tired of fighting it and figuring out what it's doing...
2009-03-04README: documentation update
2009-03-04Add before_exec hook
This is useful for freeing certain resources you do NOT want passed to child processes.
2009-03-04Remove "directory" config option
Unicorn will always continue to run in the directory it started in, it does not chdir to "/". Since the default start_ctx[:cwd] is symlink-aware, this should not be a problem for Capistrano-deployed applications.
2009-03-04Ensure we always try to have a default listener
This is a followup to 11172f9bdcc7c57c9ae857a8088e49527a953fa1
2009-03-04Ensure reopened std{out,err}_paths can be rotated
The $stderr/$stdout objects need to point to +File+ objects and mot just +IO+ objects they default to for reopen_logs to work.
2009-03-03unicorn/http11: hopefully fix gem installation
Also, update the Manifest
2009-03-03test_exec: remove extraneous fcntl require
There used to be a log rotation lambda in there, but that got moved to lib/unicorn/util.rb for convenience.
2009-03-03configurator: update the per-worker listen example
The config file format changed from add_listener => listen.
2009-03-03require Rack as late as possible in execution
This allows LOAD_PATH modifications via the command-line (via -I or -rubygems on the command-line).
2009-03-03Raise ArgumentError if listeners are empty
Instead of blindly trying to bind to the default listener (which is already the default as specified by Configurator).
2009-03-03Add configurator test
2009-03-03fix typo (DEFAULT_LISTENER => DEFAULT_LISTEN)
2009-03-03Allow stderr_path and stdout_path to be set in the config
As opposed to doing this in the shell, this allows the files to be reopened reliably after rotation. While we're at it, use $stderr/$stdout instead of STDERR/STDOUT since they seem to be more favored.
2009-03-03Load the app _after_ forking workers by default
This means processes will share less memory but things should be compatible with all existing setups.
2009-03-03Rakefile: remove unused move_extensions code
2009-03-03Handle Errno::EINTR during IO.select in workers
If we get woken up during an IO.select, just make a bet that we spent some time doing something else and aggressively try to accept new connections without trying to wait for I/O-readiness notification.
2009-03-03Make USR1 rotate log files by default
I consider it a sensible default for long-running servers. Additionally, there is no easy way to make USR1 rotate the master process log without this.
2009-03-03Add Unicorn::Util for a reopen_logs method
Since I use it myself and also in the tests, we might as well implement it correctly as a class method so people can run it in their trap('USR2') hooks.
2009-03-03symlink-aware start_ctx[:cwd]
Using `/bin/sh -c pwd` here instead of Dir.pwd since the pwd shell builtin is symlink-aware if ENV['PWD'] is correct (and it is when launched via Cap). Also, correctly use @directory if it is set.
2009-03-03Unlink the pid file explicitly when master exits
Relying on at_exit can still means a child might get it if there's any race condition....
2009-03-03test_exec: avoid mis-teardown just in case...
Probably not a real bug, but test_exec has been experiencing mysterious failures....
2009-03-03Begin to allow deferred app creation/loading
Some applications do not handle loading before forking out-of-the-box very gracefully, this starts adding support to build the Rack(-ish) application later in the process.
2009-03-03test_exec: avoid hiding error when binary can't be found
Oops, that was making debugging tests quite difficult.
2009-03-03Remove unnecessary separators in help text
Doesn't seem to make a difference for 1.8 but shows up in 1.9...
2009-03-03Remove -P/--pid switch from CLI
It's confusing with the lowercase "-p" option which is more common for developers to use. PID files are only needed for production deployments, and those should be using config files anyways.
2009-03-03test_exec: higher timeouts for log reading
Yeah, some of my test machines are ridiculously slow...
2009-03-03test_exec: be more liberal regarding terminal output
23x79 looks better in a terminal, but the Ruby 1.9 OptionParser output adds a little more whitespace requiring 24x80 output, which is still fine...
2009-03-03test/exec: avoid letting child processes unlink tempfiles
Hopefully this fixes some random test failures I've been experiencing...
2009-03-03test for "unicorn --help" output
Ensure the output fits in a standard ANSI terminal so it's easy to read for all users regardless of what interface they're working from.
2009-03-03exec: disable embedded switch parsing in config.ru
Since not all rackup command-line options can be supported by Unicorn, disable this gross hack to avoid potentially unpredictable or undefined behavior. config.ru will not be able to specify the config file for unicorn-specific options; but the unicorn-specific config files themselves will be allowed to override the default config.ru location.
2009-03-03test_exec: simplify check for unicorn binary
2009-03-03test/aggregate: remove Ruby version from output
This was accidentally left in there during 1.9 compatibility testing.
2009-03-03.gitignore: updates to be more flexible
Just use globs for *.o/*.so/*.bundle files since there's never any reason they should be checked into version control.
2009-02-25rename http11 => unicorn/http11
Avoid conflicting with existing (and future) Mongrel installs in case either changes. Of course, this also allows us more freedom to experiment and break the API if needed... However, I'm only planning on making minor changes to remove the amount of C code we have to maintain and possibly some minor performance improvements.
2009-02-23Update Manifest