Skip to content

Commit

Permalink
TCP engine: Fix misleading logs
Browse files Browse the repository at this point in the history
(cherry picked from commit a7249f0)
  • Loading branch information
liviuchircu committed Jul 3, 2017
1 parent 2ae866f commit ad06f0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/net_tcp.c
Expand Up @@ -1165,8 +1165,8 @@ inline static int handle_tcp_worker(struct tcp_child* tcp_c, int fd_i)
}
}

LM_DBG("reader response= %lx, %ld from %d \n",
response[0], response[1], (int)(tcp_c-&tcp_children[0]));
LM_DBG("response= %lx, %ld from tcp worker %d (%d)\n",
response[0], response[1], tcp_c->pid, (int)(tcp_c-&tcp_children[0]));

cmd=response[1];
tcpconn=(struct tcp_connection*)response[0];
Expand Down Expand Up @@ -1220,8 +1220,8 @@ inline static int handle_tcp_worker(struct tcp_child* tcp_c, int fd_i)
tcpconn_destroy(tcpconn); /* closes also the fd */
break;
default:
LM_CRIT("unknown cmd %d from tcp reader %d\n",
cmd, (int)(tcp_c-&tcp_children[0]));
LM_CRIT("unknown cmd %d from tcp worker %d (%d)\n",
cmd, tcp_c->pid, (int)(tcp_c-&tcp_children[0]));
}
end:
return bytes;
Expand Down

0 comments on commit ad06f0f

Please sign in to comment.