notes about message length and MTUs
This commit is contained in:
		
							parent
							
								
									e5db06a680
								
							
						
					
					
						commit
						ec869593f6
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -28,6 +28,9 @@ import Debug.Trace
 | 
				
			||||||
-- Only some kinds of payloads can be split, and only to a limited number of parts.
 | 
					-- Only some kinds of payloads can be split, and only to a limited number of parts.
 | 
				
			||||||
-- This function only deals with potentially large payload types and passes the
 | 
					-- This function only deals with potentially large payload types and passes the
 | 
				
			||||||
-- rest as-is.
 | 
					-- rest as-is.
 | 
				
			||||||
 | 
					--
 | 
				
			||||||
 | 
					-- The common IPv6 path MTU is 1280 bytes. When substracting 40 bytes TCP header (minimum) and 8 bytes UDP header, that gives remaining 1232 bytes for the payload.
 | 
				
			||||||
 | 
					-- Leaving room for IPv6 header extensions, 1200 bytes appear to be a good default.
 | 
				
			||||||
splitPayload :: Int                 -- number of parts to split payload into
 | 
					splitPayload :: Int                 -- number of parts to split payload into
 | 
				
			||||||
             -> ActionPayload       -- payload to be split
 | 
					             -> ActionPayload       -- payload to be split
 | 
				
			||||||
             -> [ActionPayload]     -- list of smaller payloads
 | 
					             -> [ActionPayload]     -- list of smaller payloads
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue