Browse Source

Differentiate pong from other spurious messages from clients

master
Con Kolivas 10 years ago
parent
commit
aa153ba742
  1. 6
      src/stratifier.c

6
src/stratifier.c

@ -3691,7 +3691,11 @@ static void parse_instance_msg(ckpool_t *ckp, sdata_t *sdata, smsg_t *msg, strat
if (res_val) { if (res_val) {
const char *result = json_string_value(res_val); const char *result = json_string_value(res_val);
LOGDEBUG("Received spurious response %s", result ? result : ""); if (!safecmp(result, "pong"))
LOGDEBUG("Received pong from client %"PRId64, client_id);
else
LOGDEBUG("Received spurious response %s from client %"PRId64,
result ? result : "", client_id);
goto out; goto out;
} }
send_json_err(sdata, client_id, id_val, "-3:method not found"); send_json_err(sdata, client_id, id_val, "-3:method not found");

Loading…
Cancel
Save