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

2.2.4

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