1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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..
This commit is contained in:
Andy Green 2021-03-19 15:30:43 +00:00
parent 632ddd8b9e
commit 51790705a0

View file

@ -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/