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

260 commits

Author SHA1 Message Date
Elia Schito
325ad31ac6
Mark as a breaking change in the changelog ()
[ci skip]
2022-10-15 23:12:19 +02:00
Patrik Ragnarsson
cfb0477350
Document that DefaultRackup et al. was removed ()
[ci skip]
2022-10-14 20:33:27 +02:00
Nate Berkopec
32d999708d
6.0.0 () 2022-10-14 10:30:06 +09:00
Nate Berkopec
2615b78172
Release note fix for 5.6.5
This feature commit was erroneously included because it was marked as both a bugfix and a feature. We generally try not to include new features in patch releases but this one slipped through. Sorry about that!
2022-08-27 22:13:57 -07:00
Nate Berkopec
0c930b3ce3
5.6.5 release note () 2022-08-23 08:29:38 +09:00
Nate Berkopec
f633942447
4.3.11 history
[ci skip]
2022-03-30 08:01:04 -07:00
Nate Berkopec
89a8190bef
5.6.4
I accidentally pushed master as 5.6.3 rather than 5-6-stable, so I yanked and now its going to go up as 5.6.4

[ci skip]
2022-03-30 07:27:53 -07:00
Nate Berkopec
643daa1db7
5.6.3
[ci skip]
2022-03-30 07:17:13 -07:00
Nate Berkopec
be754e410d
4.3.11 release note [ci skip] 2022-02-11 14:02:42 -08:00
Nate Berkopec
57bebe62a3
5.6.2 2022-02-11 13:08:32 -08:00
Nate Berkopec
e0753de846
2.6.1 2022-01-26 16:18:04 -08:00
Nate Berkopec
61ebbbe8ec
5.6.0 2022-01-25 13:19:40 -08:00
Nate Berkopec
7812f1be98
Update History.md 2021-10-25 16:08:59 -06:00
Nate Berkopec
56a25f7096
4.3.10 release note 2021-10-12 17:09:49 -06:00
Nate Berkopec
a2bcda4143
5.5.2 2021-10-12 17:06:59 -06:00
Nate Berkopec
acdc3ae571
Merge pull request from GHSA-48w2-rm65-62xx
* Fix HTTP request smuggling vulnerability

See GHSA-48w2-rm65-62xx or CVE-2021-41136 for more info.

* 4.3.9 release note

* 5.5.1 release note

* 5.5.1
2021-10-12 08:38:40 -06:00
Nate Berkopec
21e0443cca
5.5.0 2021-09-19 14:08:06 -06:00
Chris LaRose
9e2f5d12b2
Add threadpool deadlock fix to history for 5.4.0 () 2021-07-30 08:47:26 -06:00
Nate Berkopec
f041b020aa
5.4.0 () 2021-07-29 08:25:27 -06:00
Nate Berkopec
b7a9eb69ac
Add CVE to History [ci skip] 2021-05-26 08:05:11 -06:00
Nate Berkopec
f4766ce469
5.3.2 2021-05-21 11:15:26 -06:00
Nate Berkopec
1c91a4f1af
5.3.1 2021-05-11 08:30:56 -06:00
Nate Berkopec
6b4a68ab9b
4.3.8 release note 2021-05-11 08:29:12 -06:00
Nate Berkopec
6dfb8bc2ba
5.3.0 history () 2021-05-07 08:47:54 -06:00
Kevin Newton
366496b89d
Handle segfault in Ruby 2.6.6 on thread-locals ()
When you're trying to access a thread-local variable on Ruby < 2.7, and you call `thread_variable_get` on a `Process::Waiter` (a subclass of `Thread`), it will segfault. This adds a check for which Ruby version you're on to make it safe for Ruby 2.6.

Fixes .
2021-04-19 09:30:02 -06:00
Yoann Lecuyer
c68e20dd4e
Add debug to worker timeout and startup ()
Logs reason for worker timeout and the startup time when worker boots
2021-03-11 11:17:44 -06:00
Christian Gregg
81d26e91b7
Print warning when running one-worker cluster ()
* Print warning when running one-worker cluster

Running Puma in cluster-mode is likely a misconfiguration in most
scenarios.

Cluster mode has some overhead of running an addtional 'control' process
in order to manage the cluster. If only running a single worker it is
likely not worth paying that overhead vs running in single mode with
additional threads instead.

There are some scenarios where running cluster mode with a single worker
may still be warranted and valid under certain deployment scenarios, see
the linked issue for details.

From experience at work, we were able to migrate our Rails applications
from single worker cluster to single-mode and saw a reduction of RAM
usage of around ~15%.

Closes 

* Remove link to issue

* Add #silence_single_worker_warning option

* Test single_worker_warning
2021-03-09 07:40:31 -07:00
MSP-Greg
ae6a506029
Don't close systemd activated socket on pumactl restart ()
Closes 
2021-03-06 10:24:00 -07:00
Nate Berkopec
7970d14e63
5.2.2 [ci skip] 2021-02-22 13:20:14 -07:00
Chris LaRose
7a2cdf6a7e
Restore sync=true on global stdout/stderr streams ()
* Restore sync=true on STDOUT/STDERR streams

* Move mutation of STDOUT and STDERR streams to `redirect_io`

This isn't technically related to redirecting the STDOUT and STDERR
streams, but moving it here keeps all of the STDOUT/STDERR logic
together. It seems like a more natural place to put it.

* Add a test to ensure that STDOUT is flushed by default
2021-02-22 13:17:03 -07:00
Olivier Bellone
7c91d90a11
Add #flush and #sync methods to Puma::NullIO () 2021-02-10 15:30:24 -07:00
Nate Berkopec
9ede356a47
5.2.1 2021-02-05 15:12:52 -07:00
MSP-Greg
e3380e9b53
server.rb - properly cork & uncork ssl client () 2021-02-05 15:06:30 -07:00
Mikael Borg
b9a121be8f
Set @env[CONTENT_LENGTH] value as string. ()
* Set @env[CONTENT_LENGTH] value as string.

* Update tests.

Update tests to reflect that CONTENT_LENGTH is now a string.
Add change to History.md.

* Update History.md

Co-authored-by: Patrik Ragnarsson <patrik@starkast.net>

Co-authored-by: Patrik Ragnarsson <patrik@starkast.net>
2021-02-04 06:59:39 -07:00
Maple Ong
29bf4ac9ab
Require rack/common_logger only if :verbose is true () 2021-02-03 14:34:11 -07:00
MSP-Greg
a5c4b1e130
MiniSSL::Socket#write - use data.byteslice(wrote..-1) ()
Instead of data[wrote..-1]
2021-02-01 14:11:48 -07:00
Nate Berkopec
f7f58ae2ae
Add date to History [ci skip] 2021-01-27 13:35:05 -07:00
MSP-Greg
4b6fe29608
5.2 - update History links () 2021-01-27 13:34:02 -07:00
MSP-Greg
9a10064d02
minissl.c - change dh1024 to dh2048 for SSL_CTX_set_tmp_dh () 2021-01-27 12:58:09 -07:00
MSP-Greg
37a3bc66ff
Fix SSL Context - minissl.c, minissl.rb, extconf.rb ()
Contexts are currently created for every accepted ssl client.  That isn't needed, but more importantly, Contexts read two files.

For a busy server, this results in slow clients.

Update to create the Context in MinSSL::Server.new, and pass it to MinSSL::Engine.server.

Only affects MRI builds.
2021-01-26 14:18:51 -07:00
MSP-Greg
a2d38b1224
Change 'Goodbye!' message to be output after listeners are closed ()
Co-authored-by: Nate Berkopec <nate.berkopec@gmail.com>
2021-01-24 14:31:41 -07:00
MSP-Greg
ad92fc308c
Binder - add ssl localhost logging, use ternary operator ()
test_binder.rb - remove skips for:
  test_correct_zero_port_ssl
  test_logs_all_localhost_bindings_ssl
2021-01-24 14:29:13 -07:00
Nate Berkopec
ac5670aced
Prepare release notes for 5.2 2021-01-21 10:44:11 -07:00
Will Jordan
3307be6c7b
Remove Server#read_body ()
Unused method leftover from previous refactoring.
2021-01-19 15:53:47 -07:00
João Fernandes
503b1cde53
Allow specifying the desired IO selector backend for nio4r ()
* Allow specifying the desired IO selector backend

nio4r will soon have experimental support for io_uring via libev. The brave
might want to try it out :) regardless of that, allowing users to explicitly
set the IO selector backend seems like a good idea to me.

* Change History.md

* Add PR number

* Fix History.md

Oops!

* Update docs based on PR feedback

* Add test serving requests using a custom IO selector

* Document the NIO4R_PURE environment variable

* Raise clearer error when the requested backend is unsupported

* Simply boot the server and check the backend
2021-01-12 09:39:33 -07:00
Slava Kardakov
94b2ecb436
Build proper url instead of interpolating in Puma::DSL#port ()
Fixes the issue with `puma -b ::1`
2021-01-04 10:43:45 -07:00
Patrik Ragnarsson
3bee53840c
Add #string method to Puma::NullIO ()
Makes Puma::NullIO more similar to [StringIO].

[StringIO]: https://docs.ruby-lang.org/en/2.5.0/StringIO.html#method-i-string
2021-01-04 09:52:23 -07:00
Chris LaRose
9122da9d91 Add History entry 2020-12-16 19:52:55 -08:00
Nate Berkopec
f06283473e
5.1.1 2020-12-10 08:23:10 -07:00
Micke Lisinge
95b5175fc7
Make illegal header matching more stringent () 2020-12-10 08:15:25 -07:00