# HG changeset patch # User jlarmour # Date 1083287636 0 # Node ID b28e83693693e52fdeffa6811c9e6092ba60ff19 # Parent 812bf7d5e7fc415c1453a05ec9110245f7fcb6e7 * src/ecos/timeout.c (callout_reset): Clarify assert message on expiry date from ages ago and also add comment explaining further. diff --git a/packages/net/bsd_tcpip/current/ChangeLog b/packages/net/bsd_tcpip/current/ChangeLog --- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2004-04-30 Jonathan Larmour + + * src/ecos/timeout.c (callout_reset): Clarify assert message on + expiry date from ages ago and also add comment explaining further. + 2004-03-30 Horst Kronstorfer * src/sys/kern/uipc_mbuf.c diff --git a/packages/net/bsd_tcpip/current/src/ecos/timeout.c b/packages/net/bsd_tcpip/current/src/ecos/timeout.c --- a/packages/net/bsd_tcpip/current/src/ecos/timeout.c +++ b/packages/net/bsd_tcpip/current/src/ecos/timeout.c @@ -402,8 +402,11 @@ callout_reset(struct callout *c, int del for (e = timeouts; e; e = e->next) { if (e->delta) { CYG_ASSERT( e->delta >= last_delta, "e->delta underflow" ); + // the following triggers if the "next" timeout has not just + // passed, but passed by 1000 ticks - which with the normal + // 1 tick = 10ms means 10 seconds - a long time. CYG_ASSERT( last_set_time + e->delta + 1000 > now, - "Recorded alarm not in the future!" ); + "Recorded alarm not in the future! Starved network thread?" ); if ( e->delta < delta ) delta = e->delta; } else {