* MDF [broker] remove unused PING reply code in broker
@@ -435,7 +435,7 @@ server_cb(void *arg)
nng_ctx_send(work->ctx, work->aio);
}
work->msg = smsg;
- //check webhook & rule engine
+ //check webhook & rule engine & bridge
conf_web_hook *hook_conf = &work->config->web_hook;
if (hook_conf->enable) {
work->state = SEND;
@@ -467,22 +467,6 @@ server_cb(void *arg)
work->state = RECV;
nng_ctx_recv(work->ctx, work->aio);
break;
- } else if (nng_msg_cmd_type(work->msg) == CMD_PINGREQ) {
- smsg = work->msg;
- nng_msg_clear(smsg);
- ptr = nng_msg_header(smsg);
- ptr[0] = CMD_PINGRESP;
- ptr[1] = 0x00;
- nng_msg_set_cmd_type(smsg, CMD_PINGRESP);
- work->msg = smsg;
- work->pid = nng_msg_get_pipe(work->msg);
- nng_msg_set_pipe(work->msg, work->pid);
- nng_aio_set_msg(work->aio, work->msg);
- work->msg = NULL;
- work->state = SEND;
- nng_ctx_send(work->ctx, work->aio);
- smsg = NULL;
- nng_aio_finish(work->aio, 0);
} else {
debug_msg("broker has nothing to do");
if (work->msg != NULL)
