[svn-commits] rmudgett: branch rmudgett/http_persistent r417191 - /team/rmudgett/http_persi...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 24 13:20:40 CDT 2014


Author: rmudgett
Date: Tue Jun 24 13:20:22 2014
New Revision: 417191

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417191
Log:
Added BUGBUG messages when closing session and when keeping connected.

Modified:
    team/rmudgett/http_persistent/main/http.c

Modified: team/rmudgett/http_persistent/main/http.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/http_persistent/main/http.c?view=diff&rev=417191&r1=417190&r2=417191
==============================================================================
--- team/rmudgett/http_persistent/main/http.c (original)
+++ team/rmudgett/http_persistent/main/http.c Tue Jun 24 13:20:22 2014
@@ -515,7 +515,10 @@
 	ast_free(out);
 
 	if (close_connection) {
+		ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  status_code:%d\n", status_code);
 		ast_tcptls_close_session_file(ser);
+	} else {
+		ast_log(LOG_NOTICE, "BUGBUG HTTP keeping session open.  status_code:%d\n", status_code);
 	}
 }
 
@@ -530,6 +533,7 @@
 		ast_free(http_headers);
 		ast_free(out);
 		if (ser && ser->f) {
+			ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  Auth OOM\n");
 			ast_tcptls_close_session_file(ser);
 		}
 		return;
@@ -567,6 +571,7 @@
 		ast_free(http_headers);
 		ast_free(out);
 		if (ser && ser->f) {
+			ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  error OOM\n");
 			ast_tcptls_close_session_file(ser);
 		}
 		return;
@@ -1562,7 +1567,7 @@
 		if (ch == EOF || ungetc(ch, ser->f) == EOF) {
 			/* Between request idle timeout */
 			ast_debug(1, "HTTP idle timeout closing session\n");
-			ast_log(LOG_NOTICE, "BUGBUG HTTP idle timeout closing session\n");
+			ast_log(LOG_NOTICE, "BUGBUG HTTP idle timeout.\n");
 			break;
 		}
 
@@ -1583,6 +1588,7 @@
 	ast_atomic_fetchadd_int(&session_count, -1);
 
 	if (ser->f) {
+		ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  Top level\n");
 		ast_tcptls_close_session_file(ser);
 	}
 	ao2_ref(ser, -1);




More information about the svn-commits mailing list