Browse code

core: tcp - more details in debug messages

(cherry picked from commit 60f7ff60a95ab5dd8192391f50f760e802d11e07)

Daniel-Constantin Mierla authored on 08/03/2019 17:40:45
Showing 1 changed files
... ...
@@ -3864,15 +3864,15 @@ inline static int send2child(struct tcp_connection* tcpconn)
3864 3864
 			}
3865 3865
 		}
3866 3866
 	}
3867
-	
3867
+
3868 3868
 	tcp_children[idx].busy++;
3869 3869
 	tcp_children[idx].n_reqs++;
3870 3870
 	if (unlikely(min_busy)){
3871 3871
 		LM_DBG("WARNING: no free tcp receiver, "
3872
-				"connection passed to the least busy one (%d)\n",
3873
-				min_busy);
3872
+				"connection passed to the least busy one (idx:%d busy:%d)\n",
3873
+				idx, min_busy);
3874 3874
 	}
3875
-	LM_DBG("selected tcp worker %d %d(%ld) for activity on [%s], %p\n",
3875
+	LM_DBG("selected tcp worker idx:%d proc:%d pid:%ld for activity on [%s], %p\n",
3876 3876
 			idx, tcp_children[idx].proc_no, (long)tcp_children[idx].pid,
3877 3877
 			(tcpconn->rcv.bind_address)?tcpconn->rcv.bind_address->sock_str.s:"",
3878 3878
 			tcpconn);
... ...
@@ -3886,7 +3886,7 @@ inline static int send2child(struct tcp_connection* tcpconn)
3886 3886
 	/* process tcp readers requests */
3887 3887
 	while(unlikely((tcpconn->state != S_CONN_BAD &&
3888 3888
 					(handle_tcp_child(&tcp_children[idx], -1)>0))));
3889
-	
3889
+
3890 3890
 	/* the above possible pending requests might have included a
3891 3891
 	   command to close this tcpconn (e.g. CONN_ERROR, CONN_EOF).
3892 3892
 	   In this case the fd is already closed here (and possible