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:
parent
d70e7357cf
commit
8f67b51d19
1 changed files with 2 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue