[vlc-devel] [PATCH] httpd: we don't need a huge sending buffer anymore on Windows

Steve Lhomme robux4 at videolabs.io
Sun Jun 5 12:21:57 CEST 2016


OOps, wrong patch

On Sun, Jun 5, 2016 at 12:17 PM, Steve Lhomme <robux4 at videolabs.io> wrote:
> --
> before the poll() changes, the smaller the buffer, the more chances we would
> lose an event
> ---
>  src/network/httpd.c | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/src/network/httpd.c b/src/network/httpd.c
> index 31d31d0..5244db7 100644
> --- a/src/network/httpd.c
> +++ b/src/network/httpd.c
> @@ -56,12 +56,7 @@
>  #   include <sys/socket.h>
>  #endif
>
> -#if defined(_WIN32)
> -/* We need HUGE buffer otherwise TCP throughput is very limited */
> -#define HTTPD_CL_BUFSIZE 1000000
> -#else
>  #define HTTPD_CL_BUFSIZE 10000
> -#endif
>
>  static void httpd_ClientDestroy(httpd_client_t *cl);
>  static void httpd_AppendData(httpd_stream_t *stream, uint8_t *p_data, int i_data);
> --
> 2.7.0
>


More information about the vlc-devel mailing list