diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:31:30 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:31:30 +0000 |
commit | 050056d08cfca91308c8cb959364a2eb1698fd47 (patch) | |
tree | a2d9595ceebd05684aa0390e7333381a88fcac53 /ffserver.c | |
parent | b4befb99c20a6398c6d162cbb0dd87371a69db36 (diff) | |
download | ffmpeg-050056d08cfca91308c8cb959364a2eb1698fd47.tar.gz |
log accept error
Originally committed as revision 13844 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 15b815f41a..92d7821cb1 100644 --- a/ffserver.c +++ b/ffserver.c @@ -654,8 +654,10 @@ static void new_connection(int server_fd, int is_rtsp) len = sizeof(from_addr); fd = accept(server_fd, (struct sockaddr *)&from_addr, &len); - if (fd < 0) + if (fd < 0) { + http_log("error during accept %s\n", strerror(errno)); return; + } ff_socket_nonblock(fd, 1); /* XXX: should output a warning page when coming |