1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Fix udp recvfrom bug

This commit is contained in:
winlin 2021-02-08 08:25:35 +08:00
parent ccb6c49029
commit 9a0e5bc979

View file

@ -316,6 +316,9 @@ int SrsUdpMuxSocket::recvfrom(srs_utime_t timeout)
{
fromlen = sizeof(from);
nread = srs_recvfrom(lfd, buf, nb_buf, (sockaddr*)&from, &fromlen, timeout);
if (nread <= 0) {
return nread;
}
// Reset the fast cache buffer size.
cache_buffer_->set_size(nread);