Skip to content

Commit

Permalink
hd-rum-transcode: print req buflen if error
Browse files Browse the repository at this point in the history
refer to GH-340
  • Loading branch information
MartinPulec committed Sep 20, 2023
1 parent d462388 commit 86ba2cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hd-rum-translator/hd-rum-translator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ struct replica {
throw string("Cannot initialize output port!\n");
}
if (udp_set_send_buf(sock.get(), bufsize) != TRUE)
fprintf(stderr, "Cannot set send buffer!\n");
fprintf(stderr, "Cannot set send buffer to %sB!\n",
format_in_si_units(bufsize));
module_init_default(&mod);
mod.cls = MODULE_CLASS_PORT;
mod.name = get_replica_mod_name(addr, tx_port);
Expand Down Expand Up @@ -978,7 +979,8 @@ int main(int argc, char **argv)
}

if (udp_set_recv_buf(sock_in, state.bufsize) != TRUE) {
fprintf(stderr, "Cannot set recv buffer!\n");
fprintf(stderr, "Cannot set recv buffer to %sB!\n",
format_in_si_units(state.bufsize));
}

printf("listening on *:%d\n", params.port);
Expand Down

0 comments on commit 86ba2cc

Please sign in to comment.