From 51790705a05b5ce0fc4685bc23f1f11ad4f131ee Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 19 Mar 2021 15:30:43 +0000 Subject: [PATCH] unix_skt: handle 0 length read as close This was commented during the metrics patch for some reason... commenting it breaks UDS -> web serving proxying. Uncomment it and see what the other problem is.. --- lib/core-net/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core-net/output.c b/lib/core-net/output.c index 8a2fd901e..72d1de0dc 100644 --- a/lib/core-net/output.c +++ b/lib/core-net/output.c @@ -283,8 +283,8 @@ lws_ssl_capable_read_no_ssl(struct lws *wsi, unsigned char *buf, size_t len) en = LWS_ERRNO; if (n >= 0) { - //if (!n && wsi->unix_skt) - // goto do_err; + if (!n && wsi->unix_skt) + goto do_err; /* * See https://libwebsockets.org/