• docs/v322_new.md src/xpdev/multisock.c sockwrap.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Dec 3 19:26:29 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e129f2a08e14d47cb8ab187f
    Modified Files:
    docs/v322_new.md src/xpdev/multisock.c sockwrap.c
    Log Message:
    Log "listening on socket" only after the bind succeeds

    xpms_add_list() logged "<prot> listening on socket <addr> port <port>"
    before calling xpms_add(), where the bind (with its retries) and the
    listen() happen. When the bind failed, as it does for the SSH server on a
    fresh Raspberry Pi OS install where OpenSSH already owns port 22, the log
    first claimed the server was listening and then reported the failure. The
    line is now logged only when xpms_add() succeeds for that interface.

    With that line gone from the failure case, the bind errors need to say
    which interface they are about, and retry_bind() named the port only for
    IPv4 and the address never: an IPv6 failure read just "!ERROR 98 binding
    SSH Server socket: Address already in use". It now names the address and
    port for IPv4 and IPv6 ("binding SSH Server socket to :: port 22"), and
    the path for a Unix domain socket.

    Fixes #1449

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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