Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow port reuse for mdp bindings
  • Loading branch information
lakeman committed May 9, 2016
1 parent 5feb675 commit 9b5b82d
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 244 deletions.
3 changes: 2 additions & 1 deletion network_cli.c
Expand Up @@ -318,8 +318,9 @@ static int app_trace(const struct cli_parsed *parsed, struct cli_context *contex

if (mdp_send(mdp_sockfd, &mdp_header, payload, len))
goto end;

ssize_t recv_len = mdp_poll_recv(mdp_sockfd, gettime_ms()+500, &mdp_header, payload, sizeof payload);
if (recv_len == -1)
break;
if (recv_len>0){
ob_clear(b);
ob_limitsize(b,recv_len);
Expand Down

0 comments on commit 9b5b82d

Please sign in to comment.