Re: [Linuxptp-users] Fw: “Resource temporarily unavailable” errors during flood ping test
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Miroslav L. <mli...@re...> - 2012-10-30 17:17:31
|
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()? -- Miroslav Lichvar |