[sr-dev] git:master: topoh: set the tcp clone rcvbuf on in mod init

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 6 11:51:15 CET 2012


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Jan  6 11:50:04 2012 +0100

topoh: set the tcp clone rcvbuf on in mod init

---

 modules/topoh/topoh_mod.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/topoh/topoh_mod.c b/modules/topoh/topoh_mod.c
index ba312b0..f42b928 100644
--- a/modules/topoh/topoh_mod.c
+++ b/modules/topoh/topoh_mod.c
@@ -41,6 +41,7 @@
 #include "../../sr_module.h"
 #include "../../events.h"
 #include "../../dprint.h"
+#include "../../tcp_options.h"
 #include "../../ut.h"
 #include "../../forward.h"
 #include "../../parser/msg_parser.h"
@@ -184,6 +185,9 @@ static int mod_init(void)
 	th_mask_init();
 	sr_event_register_cb(SREV_NET_DATA_IN, th_msg_received);
 	sr_event_register_cb(SREV_NET_DATA_OUT, th_msg_sent);
+#ifdef USE_TCP
+	tcp_set_clone_rcvbuf(1);
+#endif
 	return 0;
 error:
 	return -1;




More information about the sr-dev mailing list