summaryrefslogtreecommitdiff
path: root/tests/modules/socket/tcp/echo_server.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-25 00:33:07 +0800
committerruki <[email protected]>2020-09-25 00:33:07 +0800
commit90af4956738036172984f068502624bbc515cae7 (patch)
tree7cd7177becaf98e676ae8eaa478f042e14505d3a /tests/modules/socket/tcp/echo_server.lua
parent700f08a7bae11c22295f884610f98b7b99eb1790 (diff)
fix trailing white-space
Diffstat (limited to 'tests/modules/socket/tcp/echo_server.lua')
-rw-r--r--tests/modules/socket/tcp/echo_server.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modules/socket/tcp/echo_server.lua b/tests/modules/socket/tcp/echo_server.lua
index 9ff19dbed..fb70bd424 100644
--- a/tests/modules/socket/tcp/echo_server.lua
+++ b/tests/modules/socket/tcp/echo_server.lua
@@ -6,11 +6,11 @@ function main()
local port = 9001
local sock = socket.bind(addr, port)
sock:listen(20)
- print("%s: listening %s:%d ..", sock, addr, port)
- while true do
+ print("%s: listening %s:%d ..", sock, addr, port)
+ while true do
local sock_client = sock:accept()
if sock_client then
- print("%s: accepted", sock_client)
+ print("%s: accepted", sock_client)
local count = 0
local result = nil
while true do