Prechádzať zdrojové kódy

core: tcp - more details in debug messages

(cherry picked from commit 60f7ff60a95ab5dd8192391f50f760e802d11e07)
Daniel-Constantin Mierla 6 rokov pred
rodič
commit
efbf7aa7b8
1 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 5 5
      src/core/tcp_main.c

+ 5 - 5
src/core/tcp_main.c

@@ -3864,15 +3864,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);
@@ -3886,7 +3886,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