#define TRACE_SOURCE &trace_strm
+#if 0
+#define DDPRINTF(x...) fprintf(x)
+#else
+#define DDPRINTF(x...) do {} while(0)
+#endif
+
/* helper function to invoke the correct hash method */
unsigned int gen_hash(const struct proxy* px, const char* key, unsigned long len)
{
/* first, search for a matching connection in the session's idle conns */
srv_conn = session_get_conn(sess, target, hash);
+ if (!srv_conn)
+ DDPRINTF(stderr, "/");
if (srv_conn) {
//DBG_TRACE_STATE("reuse connection from session", STRM_EV_STRM_PROC|STRM_EV_CS_ST, strm);
}
/* no more streams available, remove it from the list */
HA_SPIN_LOCK(IDLE_CONNS_LOCK, &idle_conns[tid].idle_conns_lock);
conn_delete_from_tree(srv_conn, tid);
+ DDPRINTF(stderr, "R");
HA_SPIN_UNLOCK(IDLE_CONNS_LOCK, &idle_conns[tid].idle_conns_lock);
}
* to improve reuse rate, with a max retry limit.
*/
srv_conn = NULL;
+ DDPRINTF(stderr, "\\");
}
}
}