瀏覽代碼

fix: decrease tcp connection pool size

Yujia Qiao 4 年之前
父節點
當前提交
9b3d2eb79a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/server.rs

+ 1 - 1
src/server.rs

@@ -31,7 +31,7 @@ use crate::transport::TlsTransport;
 type ServiceDigest = protocol::Digest; // SHA256 of a service name
 type Nonce = protocol::Digest; // Also called `session_key`
 
-const TCP_POOL_SIZE: usize = 64; // The number of cached connections for TCP servies
+const TCP_POOL_SIZE: usize = 8; // The number of cached connections for TCP servies
 const UDP_POOL_SIZE: usize = 2; // The number of cached connections for UDP services
 const CHAN_SIZE: usize = 2048; // The capacity of various chans