lib/sensu/client/socket.rb
def post_init
        @protocol ||= :tcp
        @data_buffer = ""
        @parse_error = nil
        @watchdog = nil
        @mode = MODE_ACCEPT
      end
# Initialize instance variables that will be used throughout the
# lifetime of the connection. This method is called when the
# network connection has been established, and immediately after
# responding to a sender.
Initialize instance variables that will be used throughout the
lifetime of the connection. This method is called when the
network connection has been established, and immediately after
responding to a sender.
Initialize instance variables that will be used throughout the lifetime of the connection . This method is called when the network connection has been established and immediately after responding to a sender .
def post_init
        @protocol ||= :tcp
        @data_buffer = ""
        @parse_error = nil
        @watchdog = nil
        @mode = MODE_ACCEPT
      end
def post_init @protocol ||= :tcp @data_buffer = "" @parse_error = nil @watchdog = nil @mode = MODE_ACCEPT end
Initialize instance variables that will be used throughout the
lifetime of the connection.
Initialize instance variables that will be used throughout the lifetime of the connection .