instance method mark_dead

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

mark_dead(reason = "Unknown error")

Mark the server as dead and close its socket.

Parameters

reason opt = "Unknown error"
Source
# File activesupport/lib/active_support/vendor/memcache-client-1.5.1/memcache.rb, line 834
    def mark_dead(reason = "Unknown error")
      @sock.close if @sock && !@sock.closed?
      @sock   = nil
      @retry  = Time.now + RETRY_DELAY

      @status = sprintf "DEAD: %s, will retry at %s", reason, @retry
    end

Defined in activesupport/lib/active_support/vendor/memcache-client-1.5.1/memcache.rb line 834 · View on GitHub · Improve this page · Find usages on GitHub

Defined in MemCache::Server

Type at least 2 characters to search.

↑↓ navigate · open · esc close