Sha256: ca5f5ca4247fdfd5e58dfa73ec7e30ac8f5bc2cbf929c6f62437e685d73dd6e1

Contents?: true

Size: 561 Bytes

Versions: 33

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

# Standard libraries
require 'socket'
require 'tempfile'
require 'time'
require 'etc'
require 'uri'
require 'stringio'

require 'thread'

module Puma
  autoload :Const, 'puma/const'
  autoload :Server, 'puma/server'
  autoload :Launcher, 'puma/launcher'

  def self.stats_object=(val)
    @get_stats = val
  end

  def self.stats
    @get_stats.stats
  end

  # Thread name is new in Ruby 2.3
  def self.set_thread_name(name)
    return unless Thread.current.respond_to?(:name=)
    Thread.current.name = "puma #{name}"
  end
end

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
puma-4.3.12-java lib/puma.rb
puma-4.3.12 lib/puma.rb
puma-4.3.11-java lib/puma.rb
puma-4.3.11 lib/puma.rb
puma-4.3.10-java lib/puma.rb
puma-4.3.10 lib/puma.rb
puma-4.3.9 lib/puma.rb
puma-4.3.9-java lib/puma.rb
puma-4.3.8-java lib/puma.rb
puma-4.3.8 lib/puma.rb
puma-4.3.7-java lib/puma.rb
puma-4.3.7 lib/puma.rb
puma-4.3.6-java lib/puma.rb
puma-4.3.6 lib/puma.rb
gitlab-puma-4.3.5.gitlab.3 lib/puma.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/puma-4.3.0/lib/puma.rb
puma-4.3.5-java lib/puma.rb
puma-4.3.5 lib/puma.rb
puma-4.3.4-java lib/puma.rb
puma-4.3.4 lib/puma.rb