commit | 5f77fef34e76f20fe62f3e4102559c1e0fe8f5a1 | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@haproxy.com> | Mon May 29 15:26:51 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 27 14:38:02 2017 +0200 |
tree | 201f30fa920eae8b0572c0f1589b180dba390402 | |
parent | 0194897e540cec67d7d1e9281648b70efe403f08 [diff] [blame] |
MINOR: task/stream: tasks related to a stream must be init by the caller. The task_wakeup was called on stream_new, but the task/stream wasn't fully initialized yet. The task_wakeup must be called explicitly by the caller once the task/stream is initialized.
diff --git a/src/peers.c b/src/peers.c index 7f63aa9..643b8c5 100644 --- a/src/peers.c +++ b/src/peers.c
@@ -1835,6 +1835,7 @@ totalconn++; peer->appctx = appctx; + task_wakeup(t, TASK_WOKEN_INIT); return appctx; /* Error unrolling */