Closed
Description
Hi
In a few places, if hiredis gets out of memory, it calls exit()
This is unlikely, however since hiredis is a library, I'd like it if program control is dictated by the caller.
I think functions that OOM should just return failure to the user. Alternatively, the user at init time can supply a pointer to his own OOM function to be called.
I'd prefer the first approach, and don't mind implementing it if all's in consensus.
Thoughts welcome.
Metadata
Metadata
Assignees
Labels
No labels