Add a log for unrecognized packet commands
This commit is contained in:
parent
516b2707b5
commit
1739f7a1ab
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ int algo_rr_on_stream(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo,
|
|||
} else if (bp->ip.ap.fmt.headers.cmd == CMD_HEALTH) {
|
||||
if (ctx->verbose > 1) fprintf(stderr, " [algo/rr] Received a HEALTH packet of size %d on URL %s\n", bp->ip.ap.fmt.headers.size, fdinfo->url);
|
||||
rr_pkt_manage_links(ctx, fdinfo, bp);
|
||||
} else {
|
||||
fprintf(stderr, " [algo/rr] Packet CMD unrecognized (%d)\n", bp->ip.ap.fmt.headers.cmd);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue