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

8 commits

Author SHA1 Message Date
Johnny Shields
8a4ef0c16c
[WIP] Refactor: Split out LogWriter from Events (no logic change) (#2798)
* Split out LogWriter from Events

* Improve code comment

* Fix constructor interfaces

* Fix file includes

* Fix specs and requires

* Fix LogWriter

* More fixes

* Fix tests

* Fix specs

* Fix spec

* Fix more specs

* Refactor: Split out LogWriter from Events

* Improve comments

* Fix bundle pruner

Co-authored-by: shields <shields@tablecheck.com>
2022-02-05 10:06:22 -07:00
Jacob Herrington
20dc923b0b
Extract calls to purge_interrupt_queue (#2716)
* Extract calls to purge_interrupt_queue

Move calls to Thread#purge_interrupt_queue to a module function. This
means if/when this pattern needs to change it can change in one place
instead of a dozen or more places.

* Update comment on purge_interrupt_queue [ci skip]
2021-10-01 14:11:15 -06:00
MSP-Greg
a192434909
Fix CI (#2561)
1. Add racc to Gemfile for JRuby RuboCop
2. test_busy_worker - skip teardown
3. test_integration_single - patch from PR 2560
2021-03-02 08:56:11 -07:00
Nate Berkopec
4caf07a25f
Busy worker test is unstable when parallel 2020-12-16 12:40:37 -07:00
Nate Berkopec
78b3ca7352
Revert "Consolidate option handling in Server, Server small refactors, doc changes (#2373)"
This reverts commit bbbdfb8f4c.
2020-09-28 09:12:14 -06:00
MSP-Greg
bbbdfb8f4c
Consolidate option handling in Server, Server small refactors, doc changes (#2373)
* Update runner.rb

* Update server.rb

* Update test_busy_worker.rb

* Update test_out_of_band_server.rb

* Update test_persistent.rb

* Update test_puma_server.rb

* test_pumactl.rb - Fix CI warning: assigned but unused variable

* test_integration_pumactl.rb - Fix CI warning: assigned but unused variable

* Update History.md
2020-09-23 08:28:23 -06:00
MSP-Greg
712d34e46f
Test files - more port handling 2020-07-22 21:00:03 -05:00
Kamil Trzciński
7af9807778 Inject small delay to improve requests distribution
Ruby MRI when used can at most process a single thread concurrently due to GVL. This results in a over-utilisation if unfavourable distribution of connections is happening.

This tries to prefer less-busy workers (ie. faster to accept
the connection) to improve workers utilisation.
2020-05-05 17:06:28 +02:00