[sr-dev] git:master: core/tcp: init max_tls_connections in tcp options check

Daniel-Constantin Mierla miconda at gmail.com
Tue Dec 20 09:21:46 CET 2011


Module: sip-router
Branch: master
Commit: 3ab8db548c0f2aedf5bba4eae48da660defd510b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3ab8db548c0f2aedf5bba4eae48da660defd510b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Dec 20 09:20:40 2011 +0100

core/tcp: init max_tls_connections in tcp options check

---

 tcp_options.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tcp_options.c b/tcp_options.c
index 2705d5b..ce3a381 100644
--- a/tcp_options.c
+++ b/tcp_options.c
@@ -375,8 +375,10 @@ void tcp_options_check()
 						MAX_TCP_CON_LIFETIME, MAX_TCP_CON_LIFETIME);
 #ifdef USE_TCP
 	tcp_default_cfg.max_connections=tcp_max_connections;
+	tcp_default_cfg.max_tls_connections=tls_max_connections;
 #else /* USE_TCP */
 	tcp_default_cfg.max_connections=0;
+	tcp_default_cfg.max_tls_connections=0;
 #endif /* USE_TCP */
 	tcp_cfg_def_fix("rd_buf_size", (int*)&tcp_default_cfg.rd_buf_size);
 	tcp_cfg_def_fix("wq_blk_size", (int*)&tcp_default_cfg.wq_blk_size);




More information about the sr-dev mailing list