On Sun, Mar 11, 2007 at 11:43:03PM +0000, Jon Morby wrote:
> I've noticed since updating to current from 4.0-current in January to  
> -current "now" that certain commands through bgpctl seem to just  
> hang .. (we've tried this with various snapshots every 2 weeks or so  
> since January) as well as trying a full build.
> 
> If I do a bgpctl reload (100+ peers per production router) and then  
> within a minute or so do a "bgpctl show" then bgpctl's output just  
> hangs (I've left it for nearly an hour and nothing has appeared  
> beyond the headers)
> 

Hmm. That's strange. Does it work after waiting a longer time?
bgpctl show can block for some extended time (if the RDE is busy) but you
should get a result back.

> Also regardless of a reload, attempting to show rib nei a.b.c.d out  
> also just seems to hang
> 
> bgpctl show rib nei 80.252.124.1 out
> flags: * = Valid, > = Selected, I = via IBGP, A = Announced
> origin: i = IGP, e = EGP, ? = Incomplete
> 
> flags destination         gateway          lpref   med aspath origin
> 
> and no more output
> 

You're right we have a polling issue here. I'm looking into it.
In short, the RDE blocks and does not continue to process the show command
until an update or some other message was received because the current
batch of work did not queue any outgoing imsgs. The poll(2) timeout needs
to be changed to 0 in this case.

-- 
:wq Claudio

Reply via email to