提交 dbc21942 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

2.2.4

上级 3d5bc025
{
"name": "mediasoup",
"version": "2.2.3",
"version": "2.2.4",
"description": "Cutting Edge WebRTC Video Conferencing",
"author": "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
"contributors": [
......@@ -14,10 +14,9 @@
},
"keywords": [
"webrtc",
"ortc",
"sfu",
"node",
"node-module",
"ortc"
"nodejs"
],
"bugs": {
"url": "https://github.com/versatica/mediasoup/issues"
......@@ -31,13 +30,13 @@
"main": "lib/mediasoup.js",
"dependencies": {
"check-types": "^7.4.0",
"debug": "^4.0.1",
"debug": "^4.1.0",
"netstring": "^0.3.0",
"random-number": "0.0.9",
"randomatic": "^3.1.0"
},
"devDependencies": {
"eslint": "^5.6.0",
"eslint": "^5.6.1",
"gulp": "^4.0.0",
"gulp-clang-format": "^1.0.27",
"gulp-eslint": "^5.0.0",
......
......@@ -50,6 +50,7 @@ namespace RTC
{
/* Static. */
static constexpr int dtlsMtu{ 1350 };
static constexpr int SslReadBufferSize{ 65536 };
// NOTE: Those values are hardcoded as we just use AES_CM_128_HMAC_SHA1_80 and
// AES_CM_128_HMAC_SHA1_32 which share same length values for key and salt.
......@@ -354,8 +355,7 @@ namespace RTC
SSL_CTX_set_options(
DtlsTransport::sslCtx,
SSL_OP_CIPHER_SERVER_PREFERENCE | SSL_OP_NO_TICKET | SSL_OP_SINGLE_ECDH_USE |
SSL_OP_NO_QUERY_MTU
);
SSL_OP_NO_QUERY_MTU);
// Don't use sessions cache.
SSL_CTX_set_session_cache_mode(DtlsTransport::sslCtx, SSL_SESS_CACHE_OFF);
......@@ -544,11 +544,10 @@ namespace RTC
goto error;
}
SSL_set_bio(this->ssl, this->sslBioFromNetwork, this->sslBioToNetwork);
// Set the MTU so that we don't send packets that are too large, with no fragmentation.
SSL_set_mtu(this->ssl, 1200);
DTLS_set_link_mtu(this->ssl, 1200);
// Set the MTU so that we don't send packets that are too large with no fragmentation.
SSL_set_mtu(this->ssl, dtlsMtu);
DTLS_set_link_mtu(this->ssl, dtlsMtu);
/* Set the DTLS timer. */
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论