mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +00:00 
			
		
		
		
	Fix problem where one multicast/broadcast attempt could tank other interfaces
Carrying over change from ssdp, ignore failures on transmit, particularly if firewall
This commit is contained in:
		@@ -246,11 +246,11 @@ def _find_srvtype(net, net4, srvtype, addresses, xid):
 | 
			
		||||
            try:
 | 
			
		||||
                net4.sendto(data, ('239.255.255.253', 427))
 | 
			
		||||
            except socket.error as se:
 | 
			
		||||
                # On occasion, multicasting may be disabled
 | 
			
		||||
                # tolerate this scenario and move on
 | 
			
		||||
                if se.errno != 101:
 | 
			
		||||
                    raise
 | 
			
		||||
            net4.sendto(data, (bcast, 427))
 | 
			
		||||
                pass
 | 
			
		||||
            try:
 | 
			
		||||
                net4.sendto(data, (bcast, 427))
 | 
			
		||||
            except socket.error as se:
 | 
			
		||||
                pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def _grab_rsps(socks, rsps, interval, xidmap, deferrals):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user