summaryrefslogtreecommitdiff
path: root/tests/modules/socket
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-27 21:45:35 +0800
committerruki <[email protected]>2019-10-27 21:45:35 +0800
commit433872bafb966f4c5d613f0a65795bf54149fdcd (patch)
tree10a3b642fb91ed4be87bfb34b3e524f3b63773b9 /tests/modules/socket
parentecc9fe93d544669f6ae5c8261c7e3e4601a11a26 (diff)
improve socket.send
Diffstat (limited to 'tests/modules/socket')
-rw-r--r--tests/modules/socket/tcp/echo_client.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/socket/tcp/echo_client.lua b/tests/modules/socket/tcp/echo_client.lua
index d2409a210..7c88a5992 100644
--- a/tests/modules/socket/tcp/echo_client.lua
+++ b/tests/modules/socket/tcp/echo_client.lua
@@ -6,7 +6,7 @@ function main()
print("connect %s:%d ..", addr, port)
local sock = socket.connect(addr, port)
print("%s: connected!", sock)
- local send = sock:send("hello world..")
+ local send = sock:send("hello world..", {block = true})
print("%s: send %d", sock, send)
sock:close()
end