|
@@ -3813,15 +3813,15 @@ inline static int send2child(struct tcp_connection* tcpconn)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
tcp_children[idx].busy++;
|
|
|
tcp_children[idx].n_reqs++;
|
|
|
if (unlikely(min_busy)){
|
|
|
LM_DBG("WARNING: no free tcp receiver, "
|
|
|
- "connection passed to the least busy one (%d)\n",
|
|
|
- min_busy);
|
|
|
+ "connection passed to the least busy one (idx:%d busy:%d)\n",
|
|
|
+ idx, min_busy);
|
|
|
}
|
|
|
- LM_DBG("selected tcp worker %d %d(%ld) for activity on [%s], %p\n",
|
|
|
+ LM_DBG("selected tcp worker idx:%d proc:%d pid:%ld for activity on [%s], %p\n",
|
|
|
idx, tcp_children[idx].proc_no, (long)tcp_children[idx].pid,
|
|
|
(tcpconn->rcv.bind_address)?tcpconn->rcv.bind_address->sock_str.s:"",
|
|
|
tcpconn);
|
|
@@ -3835,7 +3835,7 @@ inline static int send2child(struct tcp_connection* tcpconn)
|
|
|
/* process tcp readers requests */
|
|
|
while(unlikely((tcpconn->state != S_CONN_BAD &&
|
|
|
(handle_tcp_child(&tcp_children[idx], -1)>0))));
|
|
|
-
|
|
|
+
|
|
|
/* the above possible pending requests might have included a
|
|
|
command to close this tcpconn (e.g. CONN_ERROR, CONN_EOF).
|
|
|
In this case the fd is already closed here (and possible
|