From 54a55e8371efc3c5b3b91f32e2c01983af2e00f4 Mon Sep 17 00:00:00 2001 From: lisaac Date: Thu, 26 Aug 2021 08:57:55 +0800 Subject: [PATCH] luci-lib-docker: fix chunked decode Signed-off-by: Ren Zongjia --- collections/luci-lib-docker/luasrc/docker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collections/luci-lib-docker/luasrc/docker.lua b/collections/luci-lib-docker/luasrc/docker.lua index cd9bf132d1..346b0ef235 100644 --- a/collections/luci-lib-docker/luasrc/docker.lua +++ b/collections/luci-lib-docker/luasrc/docker.lua @@ -21,7 +21,7 @@ local chunksource = function(sock, buffer) local output local _, endp, count = buffer:find("^([0-9a-fA-F]+)\r\n") - if not count then + while not count do local newblock, code = sock:recv(1024) if not newblock then return nil, code