소스 검색

Increase maximum packet fragments to make room for huge multicasts with certificates of membership tagged onto them. This likely will not actually increase the number of fragments in practice much, since these are then subsequently compressed. But the buffer needs to be allocated with room for them, otherwise these packets get dropped with a range_error exception internally.

Adam Ierymenko 11 년 전
부모
커밋
595b386afc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      node/Constants.hpp

+ 1 - 1
node/Constants.hpp

@@ -158,7 +158,7 @@ error_no_byte_order_defined;
  * The actual spec allows 16, but this is the most we'll support right
  * now. Packets with more than this many fragments are dropped.
  */
-#define ZT_MAX_PACKET_FRAGMENTS 3
+#define ZT_MAX_PACKET_FRAGMENTS 4
 
 /**
  * Timeout for receipt of fragmented packets in ms