Re: [Linuxptp-users] Fw: “Resource temporarily unavailable” errors during flood ping test
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Keller, J. E <jac...@in...> - 2012-10-30 17:34:23
|
> -----Original Message----- > From: Richard Cochran [mailto:ric...@gm...] > Sent: Tuesday, October 30, 2012 10:26 AM > To: Miroslav Lichvar > Cc: lin...@li... > Subject: Re: [Linuxptp-users] Fw: “Resource temporarily unavailable” > errors during flood ping test > > > > > > This is the wrong solution. The right way is to set the > > > tx_timestamp_retries configuration variable to a higher number, like > > > 200 or 2000 instead of the default of 2. > > > > Would it make sense to specify a timeout instead of number of retries > > and use select()? > > That doesn't work because you can't restrict the select to the error > queue only. > But select returns the time it waited, and I believe we can do something like: while (nothing_in_errorqueue or timeleft) { timeleft -= select(timeleft) } > Thanks, > Richard |