mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-11-04 03:39:24 +00:00 
			
		
		
		
	Revert "reduce mtu in quic"
This reverts commit 71a5cf09da91f23688a8830ef1cd815b972a85f0.
This commit is contained in:
		
							parent
							
								
									71a5cf09da
								
							
						
					
					
						commit
						18e7d107ba
					
				
							
								
								
									
										4
									
								
								vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/lucas-clemente/quic-go/internal/protocol/protocol.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@ -65,11 +65,11 @@ type ApplicationErrorCode uint16
 | 
			
		||||
// ethernet's max size, minus the IP and UDP headers. IPv6 has a 40 byte header,
 | 
			
		||||
// UDP adds an additional 8 bytes.  This is a total overhead of 48 bytes.
 | 
			
		||||
// Ethernet's max packet size is 1500 bytes,  1500 - 48 = 1452.
 | 
			
		||||
const MaxReceivePacketSize ByteCount = 1300
 | 
			
		||||
const MaxReceivePacketSize ByteCount = 1452 - 64
 | 
			
		||||
 | 
			
		||||
// DefaultTCPMSS is the default maximum packet size used in the Linux TCP implementation.
 | 
			
		||||
// Used in QUIC for congestion window computations in bytes.
 | 
			
		||||
const DefaultTCPMSS ByteCount = 1350
 | 
			
		||||
const DefaultTCPMSS ByteCount = 1460
 | 
			
		||||
 | 
			
		||||
// MinClientHelloSize is the minimum size the server expects an inchoate CHLO to have (in gQUIC)
 | 
			
		||||
const MinClientHelloSize = 1024
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user