Skip to content

Commit 31d2d98

Browse files
authored
Set max of resource free queue length and resource free limit to INT32_MAX (#1421)
This stops them being incorrectly set to 0 by aeron_config_parse_uint32 when comparing against int32 0
1 parent f1f8298 commit 31d2d98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aeron-driver/src/main/c/aeron_driver_context.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -978,14 +978,14 @@ int aeron_driver_context_init(aeron_driver_context_t **context)
978978
getenv(AERON_DRIVER_RESOURCE_FREE_LIMIT_ENV_VAR),
979979
(uint32_t)_context->resource_free_limit,
980980
1,
981-
UINT32_MAX);
981+
INT32_MAX);
982982

983983
_context->resource_free_queue_length = aeron_config_parse_uint32(
984984
AERON_DRIVER_RESOURCE_FREE_QUEUE_LENGTH_ENV_VAR,
985985
getenv(AERON_DRIVER_RESOURCE_FREE_QUEUE_LENGTH_ENV_VAR),
986986
(uint32_t)_context->resource_free_queue_length,
987987
16,
988-
UINT32_MAX);
988+
INT32_MAX);
989989

990990
_context->to_driver_buffer = NULL;
991991
_context->to_clients_buffer = NULL;

0 commit comments

Comments
 (0)