Skip to content

Commit

Permalink
Guard against invalid backlog value
Browse files Browse the repository at this point in the history
  • Loading branch information
dalibor committed Dec 31, 2021
1 parent 36b416a commit 3c37be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/dsl.rb
Expand Up @@ -46,10 +46,10 @@ def self.ssl_bind_str(host, port, opts)
else ''
end

backlog_str = opts[:backlog] ? "&backlog=#{opts[:backlog]}" : ''

ca_additions = "&ca=#{opts[:ca]}" if ['peer', 'force_peer'].include?(verify)

backlog_str = opts[:backlog] ? "&backlog=#{Integer(opts[:backlog])}" : ''

if defined?(JRUBY_VERSION)
ssl_cipher_list = opts[:ssl_cipher_list] ?
"&ssl_cipher_list=#{opts[:ssl_cipher_list]}" : nil
Expand Down

0 comments on commit 3c37be2

Please sign in to comment.