1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 11:21:52 +00:00

The error log information has been optimized to facilitate debugging.

This commit is contained in:
Arjen10 2024-09-08 15:07:55 +08:00
parent d70e7357cf
commit 8f67b51d19

View file

@ -455,9 +455,8 @@ srs_error_t SrsUdpMuxSocket::sendto(void* data, int size, srs_utime_t timeout)
if (nb_write <= 0) {
if (nb_write < 0 && errno == ETIME) {
return srs_error_new(ERROR_SOCKET_TIMEOUT, "sendto timeout %d ms", srsu2msi(timeout));
}
return srs_error_new(ERROR_SOCKET_WRITE, "sendto");
}
return srs_error_new(ERROR_SOCKET_WRITE, strerror(errno));
}
// Yield to another coroutines.