From: Jo-Philipp Wich Date: Wed, 10 Jun 2009 22:43:11 +0000 (+0000) Subject: libs/lucid-http: copyz() causes a Kernel oops on brcm-2.4, revert to copy() for now... X-Git-Tag: 0.9.0~211 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=0649e94571a72922682d1eeb03319d6ef6541fe4 libs/lucid-http: copyz() causes a Kernel oops on brcm-2.4, revert to copy() for now (#70) --- diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua index 95484a02f..7cfd1b703 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