Skip to content

Commit 4d77cae

Browse files
committed
Small documentation fix to sample code
1 parent b98a7f7 commit 4d77cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6320,7 +6320,7 @@ Timeout for the reading operation is controlled by the [lua_socket_read_timeout]
63206320
sock:settimeout(1000) -- one second timeout
63216321
local data, err = sock:receive()
63226322
if not data then
6323-
ngx.say("failed to read a packet: ", data)
6323+
ngx.say("failed to read a packet: ", err)
63246324
return
63256325
end
63266326
ngx.say("successfully read a packet: ", data)

0 commit comments

Comments
 (0)