Ivan FB d4479644d7
feat(ffi): async sds_destroy ABI for context recycle
Update the C ABI header for sds_destroy to the recycle-based, non-blocking
form: sds_destroy(void* ctx, SdsCallBack callback, void* userData). The
context is now recycled (returned to the pool, worker threads kept alive)
instead of torn down, because nim-chronos never frees a dispatcher's kqueue
fd — tearing threads down per context leaked fds unboundedly. The destroy
returns immediately and reports the drain outcome through the callback.

Also drop the temporary SDSDBG stderr trace markers added during the
SIGSEGV investigation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 10:04:55 +02:00
..