log accept error
Originally committed as revision 13844 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b4befb99c2
commit
050056d08c
@ -654,8 +654,10 @@ static void new_connection(int server_fd, int is_rtsp)
|
|||||||
len = sizeof(from_addr);
|
len = sizeof(from_addr);
|
||||||
fd = accept(server_fd, (struct sockaddr *)&from_addr,
|
fd = accept(server_fd, (struct sockaddr *)&from_addr,
|
||||||
&len);
|
&len);
|
||||||
if (fd < 0)
|
if (fd < 0) {
|
||||||
|
http_log("error during accept %s\n", strerror(errno));
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
ff_socket_nonblock(fd, 1);
|
ff_socket_nonblock(fd, 1);
|
||||||
|
|
||||||
/* XXX: should output a warning page when coming
|
/* XXX: should output a warning page when coming
|
||||||
|
Loading…
Reference in New Issue
Block a user