Ondřej Surý
9c3bebc26f
Properly disable the "water" in isc_mem
...
The proper way how to disable the water limit in the isc_mem context is
to call:
isc_mem_setwater(ctx, NULL, NULL, 0, 0);
this ensures that the old water callback is called with ISC_MEM_LOWATER
if the callback was called with ISC_MEM_HIWATER before.
Historically, there were some places where the limits were disabled by
calling:
isc_mem_setwater(ctx, water, water_arg, 0, 0);
which would also call the old callback, but it also causes the water_t
to be allocated and extra check to be executed because water callback is
not NULL.
This commits unifies the calls to disable water to the preferred form.
2021-07-09 15:58:02 +02:00
..
2021-07-09 15:58:02 +02:00
2021-07-01 14:34:28 +10:00
2021-07-09 15:58:02 +02:00
2021-05-24 20:44:54 +02:00
2021-07-09 15:58:02 +02:00
2021-07-06 05:33:48 +00:00
2021-07-09 15:58:02 +02:00
2021-07-09 15:58:02 +02:00
2021-02-03 12:22:33 +11:00
2021-07-09 15:58:02 +02:00
2021-02-03 12:22:33 +11:00
2021-05-22 00:37:27 -07:00
2021-07-06 05:33:48 +00:00
2021-02-22 12:22:31 +11:00
2021-07-06 05:33:48 +00:00
2021-06-30 17:28:49 +02:00
2021-06-30 17:28:48 +02:00
2021-02-03 12:22:33 +11:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-06-09 14:35:14 +02:00
2021-02-16 01:04:46 +00:00
2021-07-06 05:33:48 +00:00
2021-06-09 14:35:14 +02:00
2021-01-29 12:07:38 +01:00
2021-07-06 05:33:48 +00:00
2021-02-23 09:16:48 +01:00
2021-06-30 17:28:48 +02:00
2021-02-03 12:22:33 +11:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-05-22 00:37:27 -07:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2021-07-09 15:58:02 +02:00
2021-07-06 05:33:48 +00:00
2021-05-22 00:37:27 -07:00
2021-05-22 00:37:27 -07:00
2021-07-06 05:33:48 +00:00
2021-01-26 15:01:26 +01:00
2021-06-09 14:35:14 +02:00
2021-05-22 00:37:27 -07:00
2020-12-01 10:46:58 +11:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-05-05 19:15:33 +02:00
2021-03-26 22:04:42 +00:00
2021-05-22 00:37:27 -07:00
2021-07-09 15:58:02 +02:00
2021-07-09 15:58:02 +02:00
2021-02-03 12:22:33 +11:00
2021-05-24 20:44:54 +02:00
2021-05-22 00:37:27 -07:00
2021-05-22 00:37:27 -07:00
2021-06-09 14:35:14 +02:00
2021-07-06 05:33:48 +00:00
2021-05-22 00:37:27 -07:00
2021-03-05 13:29:26 +02:00
2021-07-06 05:33:48 +00:00
2021-07-06 05:33:48 +00:00
2021-05-22 00:37:27 -07:00
2021-07-06 05:33:48 +00:00
2021-05-26 08:15:08 +00:00
2021-07-06 05:33:48 +00:00
2021-05-22 00:37:27 -07:00
2021-02-03 12:22:33 +11:00