Overview
| Artifact ID: | 7f617700ad91f44d26833ab8a33471a7055606c5 |
|---|---|
| Ticket: | 96c3f3b47d13052efb84fefb9328a195f407d859
No processing of after events |
| User & Date: | sbron on 2017-02-12 14:41:02 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
after 665544332211 {puts Byebye} after 0 {puts Hello?} On a 32-bit system, the first after event ends up in the linked list of timer events with some negative number for its sec value. As a result the second after event is placed behind the first one in the linked list. The calculation for how long to block in TimerSetupProc() does produce the correct (positive) number for the first after event. So presumably that will fire in 20+ years. As the first event in the list has to fire before the second one will, the [puts Hello?] never happened (within the time I was willing to wait). This problem also causes a side effect with file event handlers. If a handler doesn't read all data, the readable event is also rescheduled with a timer, which again won't fire for more than 20 years. From experience I can testify that it's not at all straightforward to trace problems with reading data from sockets back to a bad value passed to an after event in a different interpreter. So either an error should be thrown when the ms value passed to after is too large, or the sorting of timers in the link list must be improved. - foundin changed to: "8.6.6"
- is_private changed to: "0"
- login: "sbron"
- priority changed to: "5 Medium"
- private_contact changed to: "8475f421649231f1e116ac602bea4537d2b027b4"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "sbron"
- subsystem changed to: "03. Timer Events"
- title changed to: "No processing of after events"
- type changed to: "Bug"