Commit 3876008a authored by Simon Morlat's avatar Simon Morlat

log incoming transaction creation and destruction

parent 48d051c2
......@@ -11,7 +11,7 @@ dnl information on the package
dnl ---------------------------
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
AC_INIT([sofia-sip], [1.13.8bc])
AC_INIT([sofia-sip], [1.13.9bc])
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sofia-sip/sip.h])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(VER_LIBSOFIA_SIP_UA_MAJOR_MINOR, [1.13])
......
......@@ -5289,9 +5289,11 @@ nta_incoming_t *nta_incoming_create(nta_agent_t *agent,
irq = incoming_create(agent, msg, sip, tport, to_tag);
if (!irq)
if (!irq){
msg_destroy(msg);
}else{
SU_DEBUG_1(("%s: created incoming transaction %p\n", __func__, irq));
}
return irq;
}
......@@ -5490,6 +5492,7 @@ void nta_incoming_destroy(nta_incoming_t *irq)
else if (irq->irq_status < 200)
nta_incoming_treply(irq, SIP_500_INTERNAL_SERVER_ERROR, TAG_END());
}
SU_DEBUG_1(("%s: %p\n", __func__, irq));
}
}
......@@ -5708,6 +5711,7 @@ void incoming_reclaim(nta_incoming_t *irq)
su_free(home, irq);
msg_destroy((msg_t *)home);
SU_DEBUG_1(("%s: %p\n", __func__, irq));
}
/** Queue request to be freed */
......
......@@ -425,15 +425,6 @@ void tls_free(tls_t *tls)
su_home_unref(tls->home);
}
int tls_get_socket(tls_t *tls)
{
int sock = -1;
if (tls != NULL && tls->bio_con != NULL)
BIO_get_fd(tls->bio_con, &sock);
return sock;
}
tls_t *tls_init_master(tls_issues_t *ti)
{
......
......@@ -81,7 +81,6 @@ typedef struct tport_tls_primary_s {
tls_t *tls_init_master(tls_issues_t *tls_issues);
tls_t *tls_init_secondary(tls_t *tls_master, int sock, int accept);
void tls_free(tls_t *tls);
int tls_get_socket(tls_t *tls);
ssize_t tls_read(tls_t *tls);
void *tls_read_buffer(tls_t *tls, size_t N);
int tls_want_read(tls_t *tls, int events);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment