summaryrefslogtreecommitdiff
path: root/tests/modules/socket/tcp/echo_client.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/socket/tcp/echo_client.lua')
-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