A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/a60d98a2437583823643a067e8b512adc0ed207c below:

[core] Protect RCV buffer access from socket stats · Haivision/srt@a60d98a · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed Original file line number Diff line number Diff line change

@@ -7449,7 +7449,8 @@ void srt::CUDT::bstats(CBytePerfMon *perf, bool clear, bool instantaneous)

7449 7449 7450 7450

if (m_pRcvBuffer)

7451 7451

{

7452 -

perf->byteAvailRcvBuf = getAvailRcvBufferSizeLock() * m_config.iMSS;

7452 +

ScopedLock lck(m_RcvBufferLock);

7453 +

perf->byteAvailRcvBuf = getAvailRcvBufferSizeNoLock() * m_config.iMSS;

7453 7454

if (instantaneous) // no need for historical API for Rcv side

7454 7455

{

7455 7456

perf->pktRcvBuf = m_pRcvBuffer->getRcvDataSize(perf->byteRcvBuf, perf->msRcvBuf);

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4