Skip to content

Commit

Permalink
Remove query type from SendHandshakeData event matcher (#237)
Browse files Browse the repository at this point in the history
* Remove query type from SendHandshakeData event matcher

Also change response to proper query type
  • Loading branch information
jacobkeeler authored Aug 27, 2021
1 parent 8370d4b commit 4bb40a7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion modules/atf_logger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ local function get_function_name(message)

if message.frameType ~= ford_constants.FRAME_TYPE.CONTROL_FRAME then
if message.serviceType == ford_constants.SERVICE_TYPE.CONTROL
and message.rpcType == ford_constants.BINARY_RPC_TYPE.NOTIFICATION
and message.rpcFunctionId == ford_constants.BINARY_RPC_FUNCTION_ID.HANDSHAKE then
return "SSL: Handshake"
end
Expand Down
1 change: 0 additions & 1 deletion modules/protocol_handler/protocol_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ end
-- @treturn boolean True if binary data is handshake data
local function isHandshakeBinaryData(serviceType, rpcType, rpcFunctionId, rpcJsonSize)
return serviceType == constants.SERVICE_TYPE.CONTROL
and rpcType == constants.BINARY_RPC_TYPE.NOTIFICATION
and rpcFunctionId == constants.BINARY_RPC_FUNCTION_ID.HANDSHAKE
and rpcJsonSize == 0
end
Expand Down
3 changes: 1 addition & 2 deletions modules/services/control_service.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ local function performStartServiceHandshake(controlService)
return data.frameType ~= constants.FRAME_TYPE.CONTROL_FRAME
and data.serviceType == constants.SERVICE_TYPE.CONTROL
and data.sessionId == controlService.session.sessionId.get()
and data.rpcType == constants.BINARY_RPC_TYPE.NOTIFICATION
and data.rpcFunctionId == constants.BINARY_RPC_FUNCTION_ID.HANDSHAKE
end

Expand All @@ -46,7 +45,7 @@ local function performStartServiceHandshake(controlService)
frameInfo = 0,
serviceType = constants.SERVICE_TYPE.CONTROL,
encryption = false,
rpcType = constants.BINARY_RPC_TYPE.NOTIFICATION,
rpcType = constants.BINARY_RPC_TYPE.RESPONSE,
rpcFunctionId = constants.BINARY_RPC_FUNCTION_ID.HANDSHAKE,
rpcCorrelationId = data.rpcCorrelationId,
binaryData = dataToSend
Expand Down

0 comments on commit 4bb40a7

Please sign in to comment.