1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/lib/puma
schneems 0584a3345e [close #1327] Fix double port bind in Rails
The "default" configuration puma level is initialized with a "binds" of `tcp://0.0.0.0:9292`. Puma is designed to be able to bind to multiple ports. 

When a `:port` is sent from Rails along with an empty `user_supplied_options` then the port is treated as a "default". This is merged in with the system defaults, and then later converted into a "binds" via calling `config.port` in the `set_host_port_to_config` method. 

The bug comes due to the "level" of the configuration. Since both are being set on the same "level" the `port` call does not over-write the existing binds but instead prepends to the array. We can fix by ensuring that any binds in a given "level" are empty before setting it.
2017-08-02 14:28:39 -05:00
..
app Continue API cleanup, preparing for 3.0 2016-02-06 19:00:29 -08:00
plugin Let's use Rubocop! (#1325) 2017-06-04 13:21:05 -07:00
rack Compare host and server name only once per call. 2016-09-13 12:23:00 +02:00
accept_nonblock.rb Vastly improve IO perf on 1.9.3 2012-08-11 15:09:09 -07:00
binder.rb Fix a typo (#1192) 2017-02-09 07:32:50 -07:00
cli.rb Split out config into explicit user and file parts 2017-03-09 11:38:26 -06:00
client.rb temporary workaround for https://bugs.ruby-lang.org/issues/13632 (#1345) 2017-07-19 12:22:36 -06:00
cluster.rb temporary workaround for https://bugs.ruby-lang.org/issues/13632 (#1345) 2017-07-19 12:22:36 -06:00
commonlogger.rb Merge pull request #1081 from frodsan/fix-log-hijacking 2016-09-08 14:44:34 -07:00
compat.rb Remove support for 1.8.7 and 1.9.2. 2016-09-01 23:58:15 +02:00
configuration.rb Config first data timeout (#1111) 2017-06-04 06:18:54 -07:00
const.rb 3.9.1 2017-06-03 07:49:13 -06:00
control_cli.rb [close #1238] Don't call non-existent method 2017-03-10 10:30:27 -06:00
convenient.rb Split out config into explicit user and file parts 2017-03-09 11:38:26 -06:00
daemon_ext.rb Continue API cleanup, preparing for 3.0 2016-02-06 19:00:29 -08:00
delegation.rb Standardize "block" usage 2013-07-03 09:25:48 -05:00
detect.rb Use Puma env detection helpers in tests. (#1156) 2016-11-22 17:27:30 -07:00
dsl.rb [close #1327] Fix double port bind in Rails 2017-08-02 14:28:39 -05:00
events.rb Remove environment from parse_error 2017-05-30 14:52:35 -04:00
io_buffer.rb Use Puma#jruby? helper. (#1159) 2016-11-23 07:38:10 -07:00
java_io_buffer.rb Conditionalize the jruby IOBuffer 2012-08-11 22:14:52 -07:00
jruby_restart.rb Let's use Rubocop! (#1325) 2017-06-04 13:21:05 -07:00
launcher.rb run tests with bundler since that is what our users run (#1317) 2017-06-09 05:20:03 -07:00
minissl.rb temporary workaround for https://bugs.ruby-lang.org/issues/13632 (#1345) 2017-07-19 12:22:36 -06:00
null_io.rb Add eof? method to NullIO? (#1169) 2016-12-12 09:58:36 -07:00
plugin.rb Execute background hooks after daemonizing. Fixes #925 2016-07-24 16:00:57 -07:00
rack_default.rb Default Rack handler helper 2013-02-09 20:27:05 -08:00
reactor.rb temporary workaround for https://bugs.ruby-lang.org/issues/13632 (#1345) 2017-07-19 12:22:36 -06:00
runner.rb Don't use Dir.exists? as it's deprecated and use Dir.exist? instead (#1294) 2017-05-15 05:40:29 -07:00
server.rb temporary workaround for https://bugs.ruby-lang.org/issues/13632 (#1345) 2017-07-19 12:22:36 -06:00
single.rb Move puma.rb to just autoloads. Fixes #1063 2016-09-05 11:29:16 -07:00
state_file.rb Move require 'yaml' to state_file.rb 2016-02-21 02:01:37 -03:00
tcp_logger.rb Fix TCPLogger log error in tcp cluster mode. 2016-06-06 21:18:28 +08:00
thread_pool.rb Meter calling accept(2) with available pool capacity (#1278) 2017-04-28 10:42:09 -07:00
util.rb Remove support for 1.8.7 and 1.9.2. 2016-09-01 23:58:15 +02:00