lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #7855] Provide alternative timeout implementation


From: chrysn
Subject: [lwip-devel] [patch #7855] Provide alternative timeout implementation
Date: Thu, 21 Nov 2013 08:09:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) Chromium/25.0.1349.2 Chrome/25.0.1349.2 Safari/538.1 Debian/unstable (3.8.2-4) Epiphany/3.8.2

Follow-up Comment #1, patch #7855 (project lwip):

i thnk that a relative timeout scheme is better suited for timeouts, as it is
easier to work with relative values in remainder class arithmetics. (by
forming a delta, you only need a one-side comparison ("is it due yet?") as
opposed to a two-side "is this timeout in the window i'm now working off?"
comparison).

the issue with timeout drift you menioned can easily be overcome by only
adjusting the `timeouts_last_time` parameter by as much time as actually
passed. i have just submitted patch #8244, which constitutes a better solution
in my opinion.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7855>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]