[FFmpeg-devel] How to extend MaxClients limit?

Benoit Fouet benoit.fouet
Wed Sep 3 09:25:54 CEST 2008


Stefano Sabatini wrote:
> On date Tuesday 2008-09-02 14:27:19 +0200, Stefano Sabatini encoded:
>   
>> On date Tuesday 2008-09-02 15:29:00 +0400, ??????? ?????? encoded:
>>     
>>> Sorry, for incorrect send and thanks for point. I'm already found it, but need to be approved as good one :)
>>>       
>>>> On Tue, 02 Sep 2008 15:17:18 +0400, ??????? ?????? wrote:
>>>>         
>>>>> Hello,
>>>>>
>>>>> We need to broadcast flv streams over 10000 clients. Now ffserver disallow MaxClients settings over 2000 limit. Can i'm make some trick to extends this?
>>>>>           
>>>> ffmpeg-devel is for development or patches for ffmpeg.
>>>> your question should be sent to ffmpeg-user
>>>> look at line 63 of ffserver.c:
>>>> /* maximum number of simultaneous HTTP connections */
>>>> #define HTTP_MAX_CONNECTIONS 2000
>>>>         
>> Maybe we should make that parameter configuration-dependant (maybe
>> this will require some kind of dynamic allocation).
>>     
>
> Like this.
>
> Regards.
>   
> ------------------------------------------------------------------------
>
> Index: ffserver.c
> ===================================================================
> --- ffserver.c	(revision 15154)
> +++ ffserver.c	(working copy)
> @@ -295,6 +292,8 @@
>  static int no_launch;
>  static int need_to_start_children;
>  
> +/* maximum number of simultaneous HTTP connections */
> +unsigned int nb_max_http_connections = 2000;
>   

why is it not static ?

-- 
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-devel mailing list