Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

monitoring: protocol: don't check for errors in handshake twice

The lower levels of the protocol handler will pass up an error if the
error.code is not 200. So, delete this logic.
  • Loading branch information...
commit 79895c268ac6154b4f0fa4f838556ab45a9968ff 1 parent 1453c84
Brandon Philips authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 agents/monitoring/default/protocol/connection.lua
View
7 agents/monitoring/default/protocol/connection.lua
@@ -245,13 +245,6 @@ function AgentProtocolConnection:startHandshake(callback)
return
end
- if msg.result.code and msg.result.code ~= 200 then
- err = Error:new(fmt('handshake failed [message=%s,code=%s]', msg.result.message, msg.result.code))
- self._log(logging.ERR, err.message)
- callback(err, msg)
- return
- end
-
self:setState(STATES.RUNNING)
self._log(logging.DEBUG, fmt('handshake successful (heartbeat_interval=%dms)', msg.result.heartbeat_interval))
callback(nil, msg)
Please sign in to comment.
Something went wrong with that request. Please try again.