[En-Nut-Discussion] TCP timeout problem - really interesting

Harald Kipp harald.kipp at egnite.de
Tue Feb 4 17:56:27 CET 2003


>
>When the time in NutSleep() is lower than 63
>(granularity of system timer) the whole thing behaves really weird.

That's indeed interesting. Let's have a look into NutSleep()

void NutSleep(u_long ms)
{
     if (ms) {
         ...some weird code...
     } else
         NutThreadYield();
}

If the sleep time is zero, NutThreadYield is called. I assume,
that when using a value below 63, it shreds the timer list.

I added it to the list of bugs for now.

Harald




More information about the En-Nut-Discussion mailing list