[Libwebsockets] problems with big dynamic content

Per Bothner per at bothner.com
Fri Jun 22 16:52:25 CEST 2018


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;

-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the Libwebsockets mailing list