mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 20:31:56 +00:00
Refine comments.
This commit is contained in:
parent
bf2a74f8da
commit
c71b867b4f
2 changed files with 2 additions and 1 deletions
|
@ -192,7 +192,7 @@ srs_error_t SrsTcpListener::cycle()
|
|||
|
||||
srs_netfd_t fd = srs_accept(lfd, NULL, NULL, SRS_UTIME_NO_TIMEOUT);
|
||||
if(fd == NULL){
|
||||
return srs_error_new(ERROR_SOCKET_CREATE, "accept failed");
|
||||
return srs_error_new(ERROR_SOCKET_ACCEPT, "accept at fd=%d", srs_netfd_fileno(lfd));
|
||||
}
|
||||
|
||||
if ((err = srs_fd_closeexec(srs_netfd_fileno(fd))) != srs_success) {
|
||||
|
|
|
@ -117,6 +117,7 @@
|
|||
#define ERROR_THREAD_STARTED 1078
|
||||
#define ERROR_SOCKET_SETREUSEADDR 1079
|
||||
#define ERROR_SOCKET_SETCLOSEEXEC 1080
|
||||
#define ERROR_SOCKET_ACCEPT 1081
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
// RTMP protocol error.
|
||||
|
|
Loading…
Reference in a new issue