Re: [Linuxptp-users] Fw: “Resource temporarily unavailable” errors during flood ping test
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2012-10-30 17:26:02
|
On Tue, Oct 30, 2012 at 06:17:18PM +0100, Miroslav Lichvar wrote: > On Tue, Oct 30, 2012 at 06:05:38PM +0100, Richard Cochran wrote: > > This does not accomplish anything since: > > > > --- /usr/include/asm-generic/errno.h --- > > > > #define EWOULDBLOCK EAGAIN /* Operation would block */ > > > > > > > usleep(1); > > > + try_again++; > > > > 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. Thanks, Richard |