[Ffmpeg-devel] closing connections in ffserver?

Nicolas Remond nicolasremond
Fri Dec 30 08:55:55 CET 2005


Hi,

I am quite new with ffserver , but I think that some connections are not close 
properly in the ffserver.

I would put :

static int http_server(void)
{
(...)

    server_fd = socket_open_listen(&my_http_addr);
    if (server_fd < 0)
        return -1;

    rtsp_server_fd = socket_open_listen(&my_rtsp_addr);
    if (rtsp_server_fd < 0)
        return -1;
(....)

//HERE IS THE PATCH
for(c = first_http_ctx; c != NULL; c = c_next) 
{
	c_next = c->next;
        log_connection(c);
	close_connection(c);
}
    
close(server_fd);
close(rtsp_server_fd);
}


Am I wrong?

Nicolas





More information about the ffmpeg-devel mailing list