diff options
| author | ruki <[email protected]> | 2020-08-04 23:00:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-08-04 23:00:31 +0800 |
| commit | df97547270f725cd31352c8c7c483549001f676d (patch) | |
| tree | f266b64cc1c2768e93b687cac51dbb19538e4e8a /tests/modules/socket/unix_tcp/echo_server.lua | |
| parent | 81c072eaa6eadde5f6427e0109226a7fa04691b0 (diff) | |
fix socket bug
Diffstat (limited to 'tests/modules/socket/unix_tcp/echo_server.lua')
| -rw-r--r-- | tests/modules/socket/unix_tcp/echo_server.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/modules/socket/unix_tcp/echo_server.lua b/tests/modules/socket/unix_tcp/echo_server.lua index 7a2334095..8b69d495f 100644 --- a/tests/modules/socket/unix_tcp/echo_server.lua +++ b/tests/modules/socket/unix_tcp/echo_server.lua @@ -3,6 +3,7 @@ import("core.base.socket") function main(addr) addr = addr or path.join(os.tmpdir(), "echo.socket") + os.tryrm(addr) local sock = socket.bind_unix(addr) sock:listen(20) print("%s: listening %s ..", sock, addr) |
