Просмотр исходного кода

client: bump TCP_SNDBUF to 1M. Needed to get enough bandwidth on Internet connections.

ambrop7 14 лет назад
Родитель
Сommit
dafba3d9d2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      client/client.h

+ 1 - 1
client/client.h

@@ -53,7 +53,7 @@
 // value related to how much out-of-order input we tolerate (see FragmentProtoAssembler num_frames argument)
 #define PEER_UDP_ASSEMBLER_NUM_FRAMES 4
 // socket send buffer (SO_SNDBUF) for peer TCP connections, <=0 to not set
-#define PEER_DEFAULT_TCP_SNDBUF 4096
+#define PEER_DEFAULT_TCP_SNDBUF 1048576
 // keep-alive packet interval for p2p communication
 #define PEER_KEEPALIVE_INTERVAL 10000
 // keep-alive receive timer for p2p communication (after how long to consider the link down)