• exec/tests/socket/accept-tls.sjs callback-closures.js callback-fairnes

    From Deucе@VERT to Git commit to main/sbbs/master on Wed Oct 28 10:37:37 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/2074253fa1ef5e51b3a4a674
    Added Files:
    exec/tests/socket/accept-tls.sjs callback-closures.js callback-fairness.js
    Modified Files:
    exec/load/ircd/core.js tls.md exec/tests/ircd/tls-network.py tls.js src/sbbs3/js_internal.cpp js_socket.cpp js_socket.h sbbs.h
    Log Message:
    ircd: prevent TLS accepts from starving server links

    Add native asynchronous TLS accepts with owned worker state, cancellation, and process-exit cleanup. Keep IRC registration on the callback thread and bound pending handshakes. Detect older hosts and retain their synchronous TLS path with a one-time warning.

    Service ready sockets, due timers, and queued callbacks fairly so connection scans cannot suppress CLOCK announcements. Cover callback closures, GC, TLS completion and shutdown, handshake saturation, and legacy-host fallback.

    Validation: native TLS network suite, 19 TLS regressions, 10 clock checks, SendQ checks, and scheduler regressions with poll and select.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net