[Libwebsockets] problems with big dynamic content

Andy Green andy at warmcat.com
Fri Jun 22 23:48:47 CEST 2018



On 06/22/2018 10:52 PM, Per Bothner wrote:
> I tried this patch, which seems to work, though of course it's hard to
> be definite with a problem like this.
> 
> diff --git a/lib/plat/unix/unix-sockets.c b/lib/plat/unix/unix-sockets.c
> index a4699016..98dfd509 100644
> --- a/lib/plat/unix/unix-sockets.c
> +++ b/lib/plat/unix/unix-sockets.c
> @@ -73,7 +73,7 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, 
> int fd)
>       defined(__HAIKU__)
>       struct protoent *tcp_proto;
>   #endif
> -
> +        fcntl(fd, F_SETFD, FD_CLOEXEC );
>       if (vhost->ka_time) {
>           /* enable keepalive on this socket */
>           optval = 1;
> 

Looks like the right thing to me.  I pushed it on master and 
v3.0-stable, thanks.

-Andy



More information about the Libwebsockets mailing list