Revert "libs/lucid-http: copyz() causes a Kernel oops on brcm-2.4, revert to copy...
authorSteven Barth <steven@midlink.org>
Wed, 10 Jun 2009 23:29:10 +0000 (23:29 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 10 Jun 2009 23:29:10 +0000 (23:29 +0000)
Fixed in nixio

libs/lucid-http/luasrc/lucid/http/server.lua

index 7cfd1b7..95484a0 100644 (file)
@@ -498,9 +498,7 @@ function Server.process(self, client, env)
 
                if sourceout and stat then
                        if util.instanceof(sourceout, IOResource) then
-                               -- 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)
+                               stat, code, msg = sourceout.fd:copyz(client, sourceout.len)
                        else
                                stat, msg = ltn12.pump.all(sourceout, sinkout)
                        end