• src/sbbs3/ftpsrvr.c js_so

    From Deuc¿@VERT to Git commit to main/sbbs/m on Monday, December 18, 2023 23:46:00
    https://gitlab.synchro.net/main/sbbs/-/commit/5ce75dbf5812fd584c1ce3a0
    Modified Files:
    src/sbbs3/ftpsrvr.c js_socket.c load_cfg.c mailsrvr.c services.c ssl.c websrvr.c
    Log Message:
    Only mutex proect tls_certificate usage.

    Holding the lock around session establishment should not be needed,
    but we need to protect tls_certificate read and usage. Since we
    don't have rwlocks in xpdev (yet?), hack together a crappy rwlock
    that does what we need.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/m on Tuesday, December 19, 2023 13:10:00
    https://gitlab.synchro.net/main/sbbs/-/commit/83d6ae6e1415bb9a545ac741
    Modified Files:
    src/sbbs3/ftpsrvr.c js_socket.c mailsrvr.c services.c websrvr.c
    Log Message:
    Now that we have a rwlock, extend it back to where it was.

    We'll hold a reader lock under the session is established, which
    should prevent blocking other threads unless something is beating
    on get_ssl_cert() (which would be a different bug).

    This still needs to be figured out, but at least this should fix
    the immediate issue.

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