We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f5877 commit db206abCopy full SHA for db206ab
doc/HttpLuaModule.wiki
@@ -5299,7 +5299,7 @@ Timeout for the reading operation is controlled by the [[#lua_socket_read_timeou
5299
sock:settimeout(1000) -- one second timeout
5300
local data, err = sock:receive()
5301
if not data then
5302
- ngx.say("failed to read a packet: ", data)
+ ngx.say("failed to read a packet: ", err)
5303
return
5304
end
5305
ngx.say("successfully read a packet: ", data)
0 commit comments