diff options
| author | ruki <[email protected]> | 2019-11-04 22:19:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-11-04 07:58:23 +0800 |
| commit | 860571059e3d30da620110e646be3b9a537333fe (patch) | |
| tree | feb1365b2bfbeea516949b07a1662a6ab9cd411d /tests/modules/socket/tcp/echo_server.lua | |
| parent | 7a63343afae6bf51e25ec4b7d2d8cdf704de3c1a (diff) | |
fix socket send
Diffstat (limited to 'tests/modules/socket/tcp/echo_server.lua')
| -rw-r--r-- | tests/modules/socket/tcp/echo_server.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modules/socket/tcp/echo_server.lua b/tests/modules/socket/tcp/echo_server.lua index d08868b54..9ff19dbed 100644 --- a/tests/modules/socket/tcp/echo_server.lua +++ b/tests/modules/socket/tcp/echo_server.lua @@ -23,7 +23,8 @@ function main() break end end - print("%s: recv: %s, count: %d", sock_client, result or "", count) + print("%s: recv: %d, count: %d", sock_client, result and result:size() or 0, count) + result:dump() sock_client:close() end end |
