1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
Commit graph

17 commits

Author SHA1 Message Date
Michael Grosser
9d93a0f62f make test_helper no longer be loaded as a test (#1283)
running `rake` loads all files starting with `test_` which is not supposed to also load the helper,
since the helper should be loaded by each test and is not a test itself.
2017-05-12 12:16:55 -07:00
Michael Grosser
d25ef26465 warn when bundler fails and avoid having to use -I to run tests (#1270) 2017-04-11 14:48:11 -07:00
Francesco Rodriguez
b638dd1948 Use Minitest instead of Test::Unit (#1152)
* Bump minitest version.

* Add basic test helper file.

* Use minitest for web server tests.

* Use Minitest for unix socket tests.

* Use Minitest for ThreadPool tests.

* Use Minitest for TCP-Rack tests

* Use Minitest for TCPLogger tests.

* Add missing helper to test helpers.

* Use Minitest for Rack server tests.

* Use Minitest for Rack handler tests.

* Use Minitest for Puma::Server tests.

* Use Minitest for Puma::Server with SSL tests.

* Use Minitest for persisten connections tests.

* Require puma in test_helper file.

* Use minitest for Puma::NullIO tests.

* Remove unnecessary requires on test files.

* Use Minitest for MiniSSL tests.

* Use Minitest for IOBuffer tests.

* Require bundler/setup in Rakefile.

* Use Minitest for HttpParser tests.

* Use Minitest for Puma::Configuration tests.

* Use Minitest for Puma::CLI tests.

* Bump Minitest version for Ruby 2.1 Gemfile.

* Use Minitest for integration tests.

* Use Minitest for Puma::App::Status tests.

* Remove test-unit from Gemfiles.

* Add timeout helper to Minitest::Test.

* Use Minitest for Puma::Binder tests.

* Remove testhelp file.

* Add missing require to Puma::Binder tests.

* Prefer require instead of require_relative.
2016-11-22 08:05:49 -07:00
Francesco Rodriguez
64f930dfb7 Minor refactor on Thread pool (#1088)
* Move shutdown grace time constant to ThreadPool.
SHUTDOWN_GRACE_TIME is the only constant (from const.rb) used by
ThreadPool. It's better to move the constant than require all const.rb.
* Fix minor typo.

* Don't need to check if timeout is zero to immediately shutdown.
This removes the duplicated code and add test for forced shutdowns.
2016-11-20 11:36:47 -07:00
Reid Morrison
452feb791b Set worker thread name.
Supports multithreaded logging and problem diagnosis.
2016-04-28 10:28:44 -04:00
Ole Michaelis
5e95791cca Add thread reaping to thread pool 2015-05-20 14:57:40 +02:00
Evan Phoenix
858e73c4f4 Fix test 2014-11-26 23:05:12 -08:00
Daniel Neighman
a3aac917f6 Clean out a threads local data before doing work 2014-10-30 17:52:37 -07:00
Larry Marburger
26c961f1db Convert thread pool sizes to integers 2013-07-16 20:07:59 -04:00
Clint Shryock
26a1ab2e14 Standardize "block" usage
This commit standardizes on the use of `block` over `blk`. I found the usage of
both in the code.
2013-07-03 09:25:48 -05:00
Evan Phoenix
6a90d64889 Fix bad test 2012-07-30 17:37:43 -06:00
Evan Phoenix
256970e048 Rearch how trimming takes place to not starve. Fixes #39
Using the work queue to communicate trimming doesn't work, it's far too
easy to starve the system doing that. Instead we now detect trimming and
work as seperate actions.
2012-02-07 09:49:23 -08:00
Evan Phoenix
f11cd81470 Add automatic pool trimming 2011-12-05 10:07:01 -08:00
Evan Phoenix
eba4c745a5 Fix 1.9 lambda arity bug and improve timing 2011-10-03 14:52:23 -07:00
Evan Phoenix
70c444d2c5 quick fix for thread pool timing 2011-09-23 20:49:45 -07:00
Evan Phoenix
190a81c55a Name change: Mongrel => Puma 2011-09-22 19:24:43 -07:00
Evan Phoenix
fdd5d7df78 Add thread pooling 2011-09-19 22:16:31 -07:00