Skip to content

Commit ff8ab92

Browse files
authored
改最大Buffer到10k,解决卡顿问题
1 parent fb1e692 commit ff8ab92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/twobot.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace twobot {
106106
.AddSocketProcess([](TcpSocket& socket) {
107107
socket.setNodelay();
108108
})
109-
.WithMaxRecvBufferSize(1024)
109+
.WithMaxRecvBufferSize(10240)
110110
.WithAddr(false, "0.0.0.0", websocket_port)
111111
.WithEnterCallback([ws_enter_callback](const HttpSession::Ptr& httpSession, HttpSessionHandlers& handlers) {
112112
handlers.setWSCallback(ws_enter_callback);

0 commit comments

Comments
 (0)