summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid-http/luasrc/lucid/http/server.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-10 22:43:11 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-10 22:43:11 +0000
commit0649e94571a72922682d1eeb03319d6ef6541fe4 (patch)
treea5ad3067997eb8afabd740b1d60d88c36e9cb2e9 /libs/lucid-http/luasrc/lucid/http/server.lua
parent8c7ad9624c2bcaf573bed1bbf27d1ef38736679a (diff)
libs/lucid-http: copyz() causes a Kernel oops on brcm-2.4, revert to copy() for now (#70)
Diffstat (limited to 'libs/lucid-http/luasrc/lucid/http/server.lua')
-rw-r--r--libs/lucid-http/luasrc/lucid/http/server.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua
index 95484a02f0..7cfd1b7032 100644
--- a/libs/lucid-http/luasrc/lucid/http/server.lua
+++ b/libs/lucid-http/luasrc/lucid/http/server.lua
@@ -498,7 +498,9 @@ function Server.process(self, client, env)
if sourceout and stat then
if util.instanceof(sourceout, IOResource) then
- stat, code, msg = sourceout.fd:copyz(client, sourceout.len)
+ -- Jow: copyz() oopses on brcm-2.4, use copy() for now
+ --stat, code, msg = sourceout.fd:copyz(client, sourceout.len)
+ stat, code, msg = sourceout.fd:copy(client, sourceout.len)
else
stat, msg = ltn12.pump.all(sourceout, sinkout)
end