patchlwIP - A Lightweight TCP/IP stack - Patches: patch #8244, make timeouts usable reliably from...


You are not allowed to post comments on this tracker with your current authentication level.

patch #8244: make timeouts usable reliably from outside of the timeout routine

Submitted by:  chrysn <chrysn>
Submitted on:  Thu 21 Nov 2013 07:58:17 AM UTC  
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  Simon Goldschmidt <goldsimon> Open/Closed:  Closed
Planned Release:  None

Tue 14 Jan 2014 08:28:37 PM UTC, comment #2:

Fixed, thanks for the patch.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 21 Nov 2013 08:54:51 AM UTC, comment #1:

a more detailed discussion of what is originally wrong, how it is fixed and what the effects are can be found on the mailing list[1].


chrysn <chrysn>
Thu 21 Nov 2013 07:58:17 AM UTC, original submission:

although timeouts are relative to timeouts_last_time (transitively by
addition to the time values of their predecessors, if there are any),
sys_timeout does not compensate for that; as a result, timeouts fire too
early unless invoked from within a timeout handler (when
timeouts_last_time == now).

note on interaction with patch #7855: i think the relative timestamp approach is sound by itself and more straightforward, it just needs to be fixed (with the presented patch).

chrysn <chrysn>


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by chrysn (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-14 goldsimon StatusNone => Done
        Assigned toNone => goldsimon
        Open/ClosedOpen => Closed
    2013-11-21 chrysn Attached File- => Added 0001-make-timeouts-usable-reliably-from-outside-of-the-ti.patch, #29682

    Back to the top

    Powered by Savane 3.3