[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: socket.http returns "No such file or directory" instead of http code on Solaris while running in Lane
- From: Petr Man <petr@...>
- Date: Mon, 7 Mar 2011 15:39:08 +0100
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