Sha256: 4b09c0f3a81e68f28480907c02709821d987565f6a9d590ad40f51d5dacf6eb6
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
# -*- encoding: binary -*- module Unicorn # Frequently used constants when constructing requests or responses. Many times # the constant just refers to a string with the same contents. Using these constants # gave about a 3% to 10% performance improvement over using the strings directly. # Symbols did not really improve things much compared to constants. module Const UNICORN_VERSION="0.97.0" DEFAULT_HOST = "0.0.0.0" # default TCP listen host address DEFAULT_PORT = 8080 # default TCP listen port DEFAULT_LISTEN = "#{DEFAULT_HOST}:#{DEFAULT_PORT}" # The basic max request size we'll try to read. CHUNK_SIZE=(16 * 1024) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
defmacro-unicorn-0.0.2 | lib/unicorn/const.rb |
defmacro-unicorn-0.0.1 | lib/unicorn/const.rb |