summaryrefslogtreecommitdiff
path: root/tests/modules/socket/sched_tcp/echo_server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/socket/sched_tcp/echo_server.lua')
-rw-r--r--tests/modules/socket/sched_tcp/echo_server.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modules/socket/sched_tcp/echo_server.lua b/tests/modules/socket/sched_tcp/echo_server.lua
index f1f502764..4ecd80191 100644
--- a/tests/modules/socket/sched_tcp/echo_server.lua
+++ b/tests/modules/socket/sched_tcp/echo_server.lua
@@ -45,6 +45,8 @@ function _listen(addr, port)
if sock_client then
print("%s: accepted", sock_client)
table.insert(sock_clients, sock_client)
+ sock_client:ctrl(socket.CTRL_SET_SENDBUFF, 100000 * 20)
+ sock_client:ctrl(socket.CTRL_SET_RECVBUFF, 100000 * 20)
scheduler.co_start(_session_recv, sock_client)
scheduler.co_start(_session_send, sock_client)
end