model-writtenrun 4501 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jacob Champion opened the thread with fixes for OAuth flows burning CPU on stale multiplexer events, proposing counted kqueue draining, expired-timer cleanup, call-count diagnostics, and a C unit-test executable in #1.
- The initial design cleared expired timers before calling Curl to avoid discarding newly created short timeouts, while clearing stale socket events afterward; Jacob planned to backpatch the fixes and diagnostics but initially keep the larger unit-test suite on master until it proved stable #1.
- Thomas Munro showed that one kevent() output slot sufficed because either a live event justified readiness or the kernel would discard all stale events, and Jacob accepted the simpler guarantee while preserving timer-before-socket cleanup ordering #5 #6.
- Jacob implemented that redesign as comb_multiplexer(), removed event counting, split opposite-direction socket-registration cleanup into a separate fix, and added a multiple-stale-events test after CI and stronger TLS tests confirmed stable callback counts #7.
- Thomas endorsed retaining the timer design that mirrors Linux and supplied a shorter explanation, while Dagfinn Ilmari Mannsåker suggested Perl wrapper improvements and shared TAP infrastructure; Jacob adopted the comment and filehandle methods but deferred common test infrastructure to avoid premature abstraction #8 #9 #10 #12 #13 #14.
- After Thomas's final LGTM, the unchanged production patches from #14 landed as the stale-event fix ff5b0824b3, socket-registration cleanup 3d9c03429a, and timer cleanup 1749a12f0d, with Jacob announcing completion in #16 after approval in #15.
- The call-count diagnostics and regression test also landed unchanged from #14 as 3e311664e4, and the separate multiplexer unit-test suite landed unchanged as 1443b6c0ea.
- Jacob reported reverting the unit-test landing after buildfarm failures, while Dagfinn clarified Perl argument-list semantics and Jacob agreed to adopt the remaining redirect-formatting suggestions in the next attempt #18 #19 #20.
- The replacement series added missing -lm linkage exposed by Clang and guarded build and installation targets with with_libcurl because the buildfarm discovered the new t/ directory and invoked Make directly, bypassing the parent directory's skip logic; cleanup targets remained unconditional #21.
- Andrew Dunstan questioned whether the conditional targets would leave make check undefined, then accepted Jacob's explanation that Makefile.global supplied a harmless default target #22 #23 #24.
- The linkage fix from #21 landed unchanged as 52ecd05aee, and the repaired unit-test suite landed unchanged from the same submission as 4e1e417330.
- At the thread's final message, Jacob reported that the restored suite had remained stable and fast and announced plans to backpatch it to PostgreSQL 18 to preserve coverage as newer implementations diverged #25.