haproxy/include
Willy Tarreau f42199975c MINOR: task: always preinitialize the task's timeout in task_init()
task_init() is called exclusively by task_new() which is the only way
to create a task. Most callers set t->expire to TICK_ETERNITY, some set
it to another value and a few like Lua don't set it at all as they don't
need a timeout, causing random values to be used in case the task gets
queued.

Let's always set t->expire to TICK_ETERNITY in task_init() so that all
tasks are now initialized in a clean state.

This patch can be backported as it will definitely make the code more
robust (at least the Lua code, possibly other places).
2017-07-24 17:52:58 +02:00
..
common MINOR: memory: remove macros 2017-07-21 09:54:03 +02:00
import CLEANUP: da: move global settings out of the global section 2016-12-21 21:30:54 +01:00
proto MINOR: task: always preinitialize the task's timeout in task_init() 2017-07-24 17:52:58 +02:00
types BUG/MAJOR: lua/socket: resources not detroyed when the socket is aborted 2017-07-18 06:41:33 +02:00