Skip to content

Issue with check variable in MiniSSL #1182

@brunowego

Description

@brunowego

Steps to reproduce

  1. Open puma.rb

  2. Add the follow line of code:

ssl_bind 'localhost', '3000', {
  key: File.expand_path('../certificates/server.key', __FILE__),
  cert: File.expand_path('../certificates/server.crt', __FILE__)
}

Change certificates/server.key and certificates/server.crt to your self-signed certificate.

  1. Run on root of app the command puma.

Expected behavior

Runs puma server...

Actual behavior

2016-12-28 10:07:04 -0200: Listen loop error: #<NoMethodError: undefined method `check' for true:TrueClass>
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/minissl.rb:209:in `accept_nonblock'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:333:in `block in handle_servers'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:328:in `each'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:328:in `handle_servers'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:301:in `block in run'

System configuration

Ruby version: ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-darwin16]
Rails version: 5.0.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions