debug the launch commandline and new connections
Originally committed as revision 4695 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b51527d850
commit
90f9c440e8
12
ffserver.c
12
ffserver.c
@ -1203,6 +1203,9 @@ static int http_parse_request(HTTPContext *c)
|
|||||||
|
|
||||||
pstrcpy(c->protocol, sizeof(c->protocol), protocol);
|
pstrcpy(c->protocol, sizeof(c->protocol), protocol);
|
||||||
|
|
||||||
|
if (ffserver_debug)
|
||||||
|
http_log("New connection: %s %s\n", cmd, url);
|
||||||
|
|
||||||
/* find the filename and the optional info string in the request */
|
/* find the filename and the optional info string in the request */
|
||||||
p = url;
|
p = url;
|
||||||
if (*p == '/')
|
if (*p == '/')
|
||||||
@ -3870,6 +3873,15 @@ static int parse_ffconfig(const char *filename)
|
|||||||
(my_http_addr.sin_addr.s_addr == INADDR_ANY) ? "127.0.0.1" :
|
(my_http_addr.sin_addr.s_addr == INADDR_ANY) ? "127.0.0.1" :
|
||||||
inet_ntoa(my_http_addr.sin_addr),
|
inet_ntoa(my_http_addr.sin_addr),
|
||||||
ntohs(my_http_addr.sin_port), feed->filename);
|
ntohs(my_http_addr.sin_port), feed->filename);
|
||||||
|
|
||||||
|
if (ffserver_debug)
|
||||||
|
{
|
||||||
|
int j;
|
||||||
|
fprintf(stdout, "Launch commandline: ");
|
||||||
|
for (j = 0; j <= i; j++)
|
||||||
|
fprintf(stdout, "%s ", feed->child_argv[j]);
|
||||||
|
fprintf(stdout, "\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(cmd, "ReadOnlyFile")) {
|
} else if (!strcasecmp(cmd, "ReadOnlyFile")) {
|
||||||
if (feed) {
|
if (feed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user