mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	IO: Avoid multiple event cycles in one loop cycle.
Event cycle may took too much time and trigger next timer events, so avoid cycling between timer and event cycles inside the loop cycle.
This commit is contained in:
		@@ -668,6 +668,10 @@ bgp_keepalive_timeout(timer *t)
 | 
			
		||||
 | 
			
		||||
  DBG("BGP: Keepalive timer\n");
 | 
			
		||||
  bgp_schedule_packet(conn, PKT_KEEPALIVE);
 | 
			
		||||
 | 
			
		||||
  /* Kick TX a bit faster */
 | 
			
		||||
  if (ev_active(conn->tx_ev))
 | 
			
		||||
    ev_run(conn->tx_ev);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user