class CrapServer::Configure

Attributes

auto_close_connection[RW]

Set to false if you want to manage the close of the connection. Note that this require manual_read set to true. DEPERCATED

log_file[RW]

The file to use as log

log_level[RW]

The log level used

max_pending_connections[RW]

The number of maximum penning connections. Default: Max allowed by the OS

pool_size[RW]

Thread pool size. 10 per cor by default

port[RW]

The port used. Default: 7331

read_buffer_size[RW]

Max read buffer size Default: 16K

Public Class Methods

new() click to toggle source
# File lib/crap_server/configure.rb, line 22
def initialize
  @port = 7331
  @manual_read = false
  @read_buffer_size = 1024*16 # 16K for read buffer
  @max_pending_connections = Socket::SOMAXCONN
  @method = :non_blocking
  @auto_close_connection = true
  @log_file = STDOUT
  @log_level = Logger::DEBUG
  @pool_size = 10
end