ac61b45a75 
								
							
								 
							
						 
						
							
							
								
								Minor docstring fixes for MatrixFederationAgent ( #4765 )  
							
							
							
						 
						
							2019-02-28 16:24:01 +00:00  
				
					
						
							
							
								 
						
							
							
								fa794980ec 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4544  from matrix-org/rav/skip_invalid_well_known  
							
							... 
							
							
							
							Treat an invalid .well-known the same as an absent one 
							
						 
						
							2019-02-01 13:18:36 +00:00  
				
					
						
							
							
								 
						
							
							
								e9779a6f8f 
								
							
								 
							
						 
						
							
							
								
								Fix b'ab' noise in logs  
							
							
							
						 
						
							2019-02-01 12:34:31 +00:00  
				
					
						
							
							
								 
						
							
							
								8a21b03fba 
								
							
								 
							
						 
						
							
							
								
								Treat an invalid .well-known the same as an absent one  
							
							... 
							
							
							
							... basically, carry on and fall back to SRV etc. 
							
						 
						
							2019-02-01 11:37:31 +00:00  
				
					
						
							
							
								 
						
							
							
								3c8a41140e 
								
							
								 
							
						 
						
							
							
								
								Cache failures to parse .well-known  
							
							... 
							
							
							
							Also add a Measure block around the .well-known fetch 
							
						 
						
							2019-02-01 00:37:52 +00:00  
				
					
						
							
							
								 
						
							
							
								24d59c7568 
								
							
								 
							
						 
						
							
							
								
								better logging for federation connections  
							
							
							
						 
						
							2019-01-31 23:18:20 +00:00  
				
					
						
							
							
								 
						
							
							
								d428b46346 
								
							
								 
							
						 
						
							
							
								
								Update federation routing logic to check .well-known before SRV  
							
							
							
						 
						
							2019-01-31 23:14:18 +00:00  
				
					
						
							
							
								 
						
							
							
								a79034aedf 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4521  from matrix-org/rav/fed_routing/cleanups  
							
							... 
							
							
							
							Tiny .well-known fixes 
							
						 
						
							2019-01-30 11:47:24 +00:00  
				
					
						
							
							
								 
						
							
							
								c7b24ac3d0 
								
									
								
							
								 
							
						 
						
							
							
								
								Follow redirects on .well-known ( #4520 )  
							
							
							
						 
						
							2019-01-30 11:43:33 +00:00  
				
					
						
							
							
								 
						
							
							
								09a1a6b55e 
								
							
								 
							
						 
						
							
							
								
								fix exception text  
							
							
							
						 
						
							2019-01-30 10:58:52 +00:00  
				
					
						
							
							
								 
						
							
							
								928c50b59a 
								
							
								 
							
						 
						
							
							
								
								Also jitter the invalid cache period  
							
							
							
						 
						
							2019-01-30 10:58:52 +00:00  
				
					
						
							
							
								 
						
							
							
								bc5f6e1797 
								
									
								
							
								 
							
						 
						
							
							
								
								Add a caching layer to .well-known responses ( #4516 )  
							
							
							
						 
						
							2019-01-30 10:55:25 +00:00  
				
					
						
							
							
								 
						
							
							
								cc2d650ef7 
								
									
								
							
								 
							
						 
						
							
							
								
								Relax requirement for a content-type on .well-known ( #4511 )  
							
							
							
						 
						
							2019-01-29 16:49:17 +00:00  
				
					
						
							
							
								 
						
							
							
								99e36d5e24 
								
									
								
							
								 
							
						 
						
							
							
								
								Implement MSC1708 (.well-known lookups for server routing) ( #4489 )  
							
							
							
						 
						
							2019-01-29 13:53:02 +00:00  
				
					
						
							
							
								 
						
							
							
								3bd0f1a4a3 
								
							
								 
							
						 
						
							
							
								
								docstrings for _RoutingResult  
							
							
							
						 
						
							2019-01-28 12:43:09 +00:00  
				
					
						
							
							
								 
						
							
							
								0fd5b3b53e 
								
							
								 
							
						 
						
							
							
								
								Handle IP literals explicitly  
							
							... 
							
							
							
							We don't want to be doing .well-known lookups on these guys. 
							
						 
						
							2019-01-28 10:34:30 +00:00  
				
					
						
							
							
								 
						
							
							
								51958df766 
								
							
								 
							
						 
						
							
							
								
								MatrixFederationAgent: factor out routing logic  
							
							... 
							
							
							
							This is going to get too big and unmanageable. 
							
						 
						
							2019-01-28 10:34:30 +00:00  
				
					
						
							
							
								 
						
							
							
								d840019192 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix idna and ipv6 literal handling in MatrixFederationAgent ( #4487 )  
							
							... 
							
							
							
							Turns out that the library does a better job of parsing URIs than our
reinvented wheel. Who knew.
There are two things going on here. The first is that, unlike
parse_server_name, URI.fromBytes will strip off square brackets from IPv6
literals, which means that it is valid input to ClientTLSOptionsFactory and
HostnameEndpoint.
The second is that we stay in `bytes` throughout (except for the argument to
ClientTLSOptionsFactory), which avoids the weirdness of (sometimes) ending up
with idna-encoded values being held in `unicode` variables. TBH it probably
would have been ok but it made the tests fragile. 
							
						 
						
							2019-01-28 09:56:59 +00:00  
				
					
						
							
							
								 
						
							
							
								8520bc3109 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix Host header sent by MatrixFederationAgent ( #4468 )  
							
							... 
							
							
							
							Move the Host header logic down here so that (a) it is used if we reuse the
agent elsewhere, and (b) we can mess about with it with .well-known. 
							
						 
						
							2019-01-25 12:38:16 +00:00  
				
					
						
							
							
								 
						
							
							
								afd69a0920 
								
							
								 
							
						 
						
							
							
								
								Look up the right SRV record  
							
							
							
						 
						
							2019-01-24 13:31:43 +00:00  
				
					
						
							
							
								 
						
							
							
								7021784d46 
								
							
								 
							
						 
						
							
							
								
								put resolve_service in an object  
							
							... 
							
							
							
							this makes it easier to stub things out for tests. 
							
						 
						
							2019-01-22 20:35:12 +00:00  
				
					
						
							
							
								 
						
							
							
								44be7513bf 
								
							
								 
							
						 
						
							
							
								
								MatrixFederationAgent  
							
							... 
							
							
							
							Pull the magic that is currently in matrix_federation_endpoint and friends into
an agent-like thing 
							
						 
						
							2019-01-22 20:34:35 +00:00