mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
@@ -370,7 +370,7 @@ if(ENABLE_JEMALLOC_STATIC)
|
|||||||
set(ENABLE_JEMALLOC_STAT OFF)
|
set(ENABLE_JEMALLOC_STAT OFF)
|
||||||
endif ()
|
endif ()
|
||||||
include(Jemalloc)
|
include(Jemalloc)
|
||||||
include_directories(SYSTEM ${DEP_ROOT_DIR}/${JEMALLOC_NAME}/include/jemalloc)
|
include_directories(SYSTEM ${DEP_ROOT_DIR}/${JEMALLOC_NAME}/include)
|
||||||
link_directories(${DEP_ROOT_DIR}/${JEMALLOC_NAME}/lib)
|
link_directories(${DEP_ROOT_DIR}/${JEMALLOC_NAME}/lib)
|
||||||
# 用于影响后续查找过程
|
# 用于影响后续查找过程
|
||||||
# Used to affect subsequent lookup process
|
# Used to affect subsequent lookup process
|
||||||
|
|||||||
@@ -677,9 +677,9 @@ namespace RTC
|
|||||||
if (notification->sn_header.sn_length > 0)
|
if (notification->sn_header.sn_length > 0)
|
||||||
{
|
{
|
||||||
static const size_t BufferSize{ 1024 };
|
static const size_t BufferSize{ 1024 };
|
||||||
static char buffer[BufferSize];
|
thread_local static char buffer[BufferSize];
|
||||||
|
|
||||||
uint32_t len = notification->sn_header.sn_length;
|
uint32_t len = notification->sn_assoc_change.sac_length - sizeof(struct sctp_assoc_change);
|
||||||
|
|
||||||
for (uint32_t i{ 0 }; i < len; ++i)
|
for (uint32_t i{ 0 }; i < len; ++i)
|
||||||
{
|
{
|
||||||
@@ -745,9 +745,9 @@ namespace RTC
|
|||||||
if (notification->sn_header.sn_length > 0)
|
if (notification->sn_header.sn_length > 0)
|
||||||
{
|
{
|
||||||
static const size_t BufferSize{ 1024 };
|
static const size_t BufferSize{ 1024 };
|
||||||
static char buffer[BufferSize];
|
thread_local static char buffer[BufferSize];
|
||||||
|
|
||||||
uint32_t len = notification->sn_header.sn_length;
|
uint32_t len = notification->sn_assoc_change.sac_length - sizeof(struct sctp_assoc_change);
|
||||||
|
|
||||||
for (uint32_t i{ 0 }; i < len; ++i)
|
for (uint32_t i{ 0 }; i < len; ++i)
|
||||||
{
|
{
|
||||||
@@ -786,7 +786,7 @@ namespace RTC
|
|||||||
case SCTP_REMOTE_ERROR:
|
case SCTP_REMOTE_ERROR:
|
||||||
{
|
{
|
||||||
static const size_t BufferSize{ 1024 };
|
static const size_t BufferSize{ 1024 };
|
||||||
static char buffer[BufferSize];
|
thread_local static char buffer[BufferSize];
|
||||||
|
|
||||||
uint32_t len = notification->sn_remote_error.sre_length - sizeof(struct sctp_remote_error);
|
uint32_t len = notification->sn_remote_error.sre_length - sizeof(struct sctp_remote_error);
|
||||||
|
|
||||||
@@ -822,7 +822,7 @@ namespace RTC
|
|||||||
case SCTP_SEND_FAILED_EVENT:
|
case SCTP_SEND_FAILED_EVENT:
|
||||||
{
|
{
|
||||||
static const size_t BufferSize{ 1024 };
|
static const size_t BufferSize{ 1024 };
|
||||||
static char buffer[BufferSize];
|
thread_local static char buffer[BufferSize];
|
||||||
|
|
||||||
uint32_t len =
|
uint32_t len =
|
||||||
notification->sn_send_failed_event.ssfe_length - sizeof(struct sctp_send_failed_event);
|
notification->sn_send_failed_event.ssfe_length - sizeof(struct sctp_send_failed_event);
|
||||||
@@ -1004,4 +1004,4 @@ namespace RTC
|
|||||||
|
|
||||||
} // namespace RTC
|
} // namespace RTC
|
||||||
|
|
||||||
#endif //ENABLE_SCTP
|
#endif //ENABLE_SCTP
|
||||||
|
|||||||
Reference in New Issue
Block a user