当我使用以下脚本时:
local smtp = require("socket.smtp")
local from = "from@host"
local rcpt = "rcpt@host"
local msg = {
headers = {
to = rcpt,
subject = "Hi"
},
body = "Hello"
}
smtp.send{from = from,rcpt = rcpt,source = smtp.message(msg)}
我收到一条错误消息:lua entry thread aborted: runtime error: attempt to yield across C-call boundary
。
我正在使用luasocket
从 Lua 5.1 安装的最新版本,luarocks
使用 LuaJIT 2.1 编译的 nginx。是什么导致了此错误消息,我该如何解决?