Repository navigation
Update libxev kqueue fix - #50
Conversation
71754f7 Fix use-after-free in kqueue no_wait mode 9b6634b update to Zig 0.15.2 git-subtree-dir: vendor/libxev git-subtree-split: 71754f7223c1ebe068ce931a6cd067d793aa0697
…rocessing Always call loop.run(.no_wait) first to process cancellations and async notifications, then check if we need to block with loop.run(.once). This ensures cancellations and cross-thread notifications are processed promptly even when there's ready work in the queue.
WalkthroughUpdates to event loop scheduling in the Zig runtime, a libxev version bump, and modifications to the kqueue backend's exit condition to ensure pending changes are flushed before loop termination. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes The changes span three distinct areas with varying complexity: a straightforward version bump, a runtime loop scheduling refactor requiring careful verification of timing implications, and a backend exit condition modification with memory safety considerations. Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-10-15T08:14:58.285ZApplied to files:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* Refactor Windows error handling for consistency - Unify error conversion by creating platform-specific error type alias - Refactor errnoToFileReadError/WriteError to handle both Windows and Unix errors - Use centralized error conversion in preadv/pwritev instead of inline switch - Remove debug print statements from file operations - Remove unused variable suppression in processCompletion (self is now used) * Fix socket leak in getExtensions failure path Close accepted socket when getExtensions fails in processCompletion to avoid leaking the file descriptor, mirroring the error handling pattern used for setsockopt failures.
Summary by CodeRabbit
Bug Fixes
Chores