summaryrefslogtreecommitdiff
path: root/tests/modules/socket/tcp/echo_client.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-27 21:08:19 +0800
committerruki <[email protected]>2019-10-27 21:08:19 +0800
commit239d4dead77af769ba5adccb58f30e9d52238adc (patch)
tree351d2e8ca05ca1daab1d79b0e8d5045bce8cbcf4 /tests/modules/socket/tcp/echo_client.lua
parent6df3d8bf595b3645022b4d465fd1192f9033913e (diff)
improve socket accept and connect
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 4da40bdc1..28c242bb1 100644
--- a/tests/modules/socket/tcp/echo_client.lua
+++ b/tests/modules/socket/tcp/echo_client.lua
@@ -3,7 +3,7 @@ import("core.base.socket")
function main()
local addr = "127.0.0.1"
local port = 9001
- print("%s: connect %s:%d ..", sock, addr, port)
+ print("connect %s:%d ..", addr, port)
local sock = socket.connect(addr, port)
print("%s: connected!", sock)
local send = sock:send("hello")