mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
MINOR: config/mux-h2: Return ERR_ flags from init_h2() instead of a status
post-check function callbacks must return ERR_* flags. Thus, init_h2() is fixed to return ERR_NONE on success or (ERR_ALERT|ERR_FATAL) on error. This patch may be backported as far as 2.2.
This commit is contained in:
parent
83fefbcdff
commit
5214099233
@ -6398,9 +6398,11 @@ static int init_h2()
|
|||||||
pool_head_hpack_tbl = create_pool("hpack_tbl",
|
pool_head_hpack_tbl = create_pool("hpack_tbl",
|
||||||
h2_settings_header_table_size,
|
h2_settings_header_table_size,
|
||||||
MEM_F_SHARED|MEM_F_EXACT);
|
MEM_F_SHARED|MEM_F_EXACT);
|
||||||
if (!pool_head_hpack_tbl)
|
if (!pool_head_hpack_tbl) {
|
||||||
return -1;
|
ha_alert("failed to allocate hpack_tbl memory pool\n");
|
||||||
return 0;
|
return (ERR_ALERT | ERR_FATAL);
|
||||||
|
}
|
||||||
|
return ERR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_POST_CHECK(init_h2);
|
REGISTER_POST_CHECK(init_h2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user