w.keepalive(:socket_responding => "tcp:12345") ignored? #114

Open
xanview opened this Issue Oct 17, 2012 · 0 comments

Projects

None yet

1 participant

@xanview

Maybe I'm misunderstanding what I need to pass, but it seems the short hand :socket_responding is ignored or isn't implemented?

If I however do the full:

    w.restart_if do |restart|
      restart.condition(:socket_responding) do |c|
        c.interval = 10.seconds
        c.socket = "tcp:12345"
      end
    end

Then that works, but it would be nice to cut down on the extra code and be able to do a simple:

    w.keepalive(:socket_responding => "tcp:12345")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment