Skip to content

Commit

Permalink
net: improve buffer to 16k
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed May 19, 2024
1 parent 5482168 commit d5daa92
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/net/protocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
#include "net/asio.hpp"
#include "net/iobuf.hpp"

#if BUILDFLAG(IS_IOS)
#define SOCKET_BUF_SIZE (1500)
#define SOCKET_DEBUF_SIZE (1500)
#else
#define SOCKET_BUF_SIZE (8192)
#define SOCKET_DEBUF_SIZE (8192)
#endif
#define SOCKET_BUF_SIZE (16384)
#define SOCKET_DEBUF_SIZE (16384)
#define SS_FRAME_SIZE (16384 - 128)

namespace net {
Expand Down

0 comments on commit d5daa92

Please sign in to comment.