projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b62adc4
)
Merge pull request #5520 from acooler15/luci-lib-docker
author
Paul Donald
<newtwen@gmail.com>
Mon, 4 Dec 2023 01:38:32 +0000
(
02:38
+0100)
committer
Paul Donald
<newtwen@gmail.com>
Mon, 4 Dec 2023 22:19:36 +0000
(23:19 +0100)
luci-lib-docker: fix chunked decode
(cherry picked from commit
4ade6bd04c6fb29203ade9cb44ecd37ab465a2d6
)
collections/luci-lib-docker/luasrc/docker.lua
patch
|
blob
|
history
diff --git
a/collections/luci-lib-docker/luasrc/docker.lua
b/collections/luci-lib-docker/luasrc/docker.lua
index cd9bf132d16d1f5f2039c4fb6e6544cea09a8826..346b0ef23542fe53d3aea457c45bbda6327c8bc2 100644
(file)
--- 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