diff options
Diffstat (limited to 'tests/modules/socket')
| -rw-r--r-- | tests/modules/socket/tcp/echo_client.lua | 2 | ||||
| -rw-r--r-- | tests/modules/socket/tcp/echo_server.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/socket/tcp/echo_client.lua b/tests/modules/socket/tcp/echo_client.lua index 28c242bb1..d2409a210 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") + local send = sock:send("hello world..") print("%s: send %d", sock, send) sock:close() end diff --git a/tests/modules/socket/tcp/echo_server.lua b/tests/modules/socket/tcp/echo_server.lua index 58e1956c1..48f22a977 100644 --- a/tests/modules/socket/tcp/echo_server.lua +++ b/tests/modules/socket/tcp/echo_server.lua @@ -11,7 +11,7 @@ function main() local sock_client = sock:accept() if sock_client then print("%s: accepted", sock_client) - local recv, data = sock_client:recv(8192) + local recv, data = sock_client:recv(13, {block = true}) print("%s: recv %d, data: %s", sock_client, recv, data or "") sock_client:close() end |
