mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 03:33:36 -04:00
CLEANUP: dns: fix misleading error messages in dns_stream_init()
All task allocation errors report "memory allocation error initializing the ring" when the actual failure was task_new_anywhere() returning NULL. This clearly is a copy-paste. Let's fix the error messages to help when debugging. Since it's only about allocation failures during init, there is probably no point in backporting this.
This commit is contained in:
parent
b6bd6f5b9a
commit
2a43a1306b
1 changed files with 3 additions and 3 deletions
|
|
@ -1363,7 +1363,7 @@ int dns_stream_init(struct dns_nameserver *ns, struct server *srv)
|
|||
}
|
||||
/* Create the task associated to the resolver target handling conns */
|
||||
if ((dss->task_req = task_new_anywhere()) == NULL) {
|
||||
ha_alert("memory allocation error initializing the ring for dns tcp server '%s'.\n", srv->id);
|
||||
ha_alert("memory allocation error initializing req task for dns tcp server '%s'.\n", srv->id);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
@ -1380,7 +1380,7 @@ int dns_stream_init(struct dns_nameserver *ns, struct server *srv)
|
|||
|
||||
/* Create the task associated to the resolver target handling conns */
|
||||
if ((dss->task_rsp = task_new_anywhere()) == NULL) {
|
||||
ha_alert("memory allocation error initializing the ring for dns tcp server '%s'.\n", srv->id);
|
||||
ha_alert("memory allocation error initializing rsp task for dns tcp server '%s'.\n", srv->id);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
@ -1390,7 +1390,7 @@ int dns_stream_init(struct dns_nameserver *ns, struct server *srv)
|
|||
|
||||
/* Create the task associated to the resolver target handling conns */
|
||||
if ((dss->task_idle = task_new_anywhere()) == NULL) {
|
||||
ha_alert("memory allocation error initializing the ring for dns tcp server '%s'.\n", srv->id);
|
||||
ha_alert("memory allocation error initializing idle task for dns tcp server '%s'.\n", srv->id);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue