Skip to content

Commit

Permalink
改最大Buffer到10k,解决卡顿问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ScSofts authored Aug 8, 2022
1 parent fb1e692 commit ff8ab92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twobot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace twobot {
.AddSocketProcess([](TcpSocket& socket) {
socket.setNodelay();
})
.WithMaxRecvBufferSize(1024)
.WithMaxRecvBufferSize(10240)
.WithAddr(false, "0.0.0.0", websocket_port)
.WithEnterCallback([ws_enter_callback](const HttpSession::Ptr& httpSession, HttpSessionHandlers& handlers) {
handlers.setWSCallback(ws_enter_callback);
Expand Down

0 comments on commit ff8ab92

Please sign in to comment.