diff libfdcore/config.c @ 767:c47c16436f71

Added a limit on fifo queues to avoid memory exaustion when messages are received faster than handled
author Sebastien Decugis <sdecugis@nict.go.jp>
date Sun, 23 Oct 2011 23:43:32 +0200
parents 4a9f08d6b6ba
children fb5e0fd923ff
line wrap: on
line diff
--- a/libfdcore/config.c	Sat Oct 22 22:56:55 2011 +0200
+++ b/libfdcore/config.c	Sun Oct 23 23:43:32 2011 +0200
@@ -68,7 +68,7 @@
 	fd_g_config->cnf_orstateid = (uint32_t) time(NULL);
 	
 	CHECK_FCT( fd_dict_init(&fd_g_config->cnf_dict) );
-	CHECK_FCT( fd_fifo_new(&fd_g_config->cnf_main_ev) );
+	CHECK_FCT( fd_fifo_new(&fd_g_config->cnf_main_ev, 0) );
 	
 	/* TLS parameters */
 	CHECK_GNUTLS_DO( gnutls_certificate_allocate_credentials (&fd_g_config->cnf_sec_data.credentials), return ENOMEM );
"Welcome to our mercurial repository"