mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-07-19 06:09:52 +00:00
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>