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

For #1651, fix return pnwrite of srs_write_large_iovs. 3.0.135

This commit is contained in:
winlin 2020-03-21 20:20:40 +08:00
parent 355f351435
commit f89b4b3b26
4 changed files with 66 additions and 4 deletions

View file

@ -336,7 +336,7 @@ srs_error_t srs_write_large_iovs(ISrsProtocolReadWriter* skt, iovec* iovs, int s
#endif
// send in a time.
if (size < limits) {
if (size <= limits) {
if ((err = skt->writev(iovs, size, pnwrite)) != srs_success) {
return srs_error_wrap(err, "writev");
}