Skip to content

Commit

Permalink
SrsRtcTcpConn: use read instead of read_fully.(#3842)
Browse files Browse the repository at this point in the history
  • Loading branch information
chundonglinlin committed Oct 20, 2023
1 parent 4e7c075 commit 7349441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_rtc_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ srs_error_t SrsRtcTcpConn::read_packet(char* pkt, int* nb_pkt)
}

// Read a RTC pkt such as STUN, DTLS or RTP/RTCP
if((err = skt_->read_fully(pkt, npkt, &nread)) != srs_success) {
if((err = skt_->read(pkt, npkt, &nread)) != srs_success) {
return srs_error_wrap(err, "rtc tcp conn read body");
}

Expand Down

0 comments on commit 7349441

Please sign in to comment.