lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

I am having some trouble with luasocket/lanes on Solaris. The
following code prints "No such file or directory" instead of the http
code.

worker = lanes.gen("*",
    function(uri)
        local http = require("socket.http")
        page, code, headers = http.request {
            method = "GET",
            url = uri
        }
        print(code)
        return {code, headers}
    end
)

The server receives the request, I can see it in the log. Without the
lane I get the http code back. Everything is fine on Linux/Windows.

Petr