summaryrefslogtreecommitdiff
path: root/tests/modules/socket/tcp/file_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/file_server.lua
parent700f08a7bae11c22295f884610f98b7b99eb1790 (diff)
fix trailing white-space
Diffstat (limited to 'tests/modules/socket/tcp/file_server.lua')
-rw-r--r--tests/modules/socket/tcp/file_server.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modules/socket/tcp/file_server.lua b/tests/modules/socket/tcp/file_server.lua
index d619a496f..1cbf40339 100644
--- a/tests/modules/socket/tcp/file_server.lua
+++ b/tests/modules/socket/tcp/file_server.lua
@@ -6,11 +6,11 @@ function main(filepath)
local port = 9090
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 file = io.open(filepath, 'rb')
if file then
local send = sock_client:sendfile(file, {block = true})