浏览代码

Changed SCTP congestion control to HighSpeed TCP

Paul-Louis Ageneau 5 年之前
父节点
当前提交
83bb6878f7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/sctptransport.cpp

+ 3 - 0
src/sctptransport.cpp

@@ -61,6 +61,9 @@ void SctpTransport::Init() {
 	usrsctp_sysctl_set_sctp_rto_initial_default(1 * 1000);         // ms
 	usrsctp_sysctl_set_sctp_init_rto_max_default(10 * 1000);       // ms
 	usrsctp_sysctl_set_sctp_heartbeat_interval_default(10 * 1000); // ms
+
+	// Change congestion control from the default TCP Reno (RFC 2581) to HighSpeed TCP (RFC 3649)
+	usrsctp_sysctl_set_sctp_default_cc_module(SCTP_CC_HSTCP);
 }
 
 void SctpTransport::Cleanup() {