• src/smblib/smbadd.c

    From rswindell@VERT to CVS commit on Thu Apr 9 22:34:12 2020
    src/smblib smbadd.c 1.43 1.44
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv10071

    Modified Files:
    smbadd.c
    Log Message:
    If smb_getstatus() fails with a SMB_ERR_READ (-203) error while trying to add
    a new message with smb_addmsg(), retry (using the configured delay/timeout values).
    On Windows, importing a QWK packet into SMB messagebases stored on a remote Samba server, for some unknown reason, the read of the msgbase status header here would fail about 1 out of 100 times, with the error:
    evnt ERROR 13 (Permission denied) (WinError 33) in qwktomsg.cpp line 515
    (sbbs_t::qwk_import_msg) writing "msgbase" access=-203 info=smb_getstatus
    reading status
    ... as if another task had the msgbase status hdr locked (which, they don't), and we (this thread) already had it locked (just 8 lines up in this same function), so shouldn't even be possible. A single retry appeared to be sufficient, but I went ahead and put the timed-loop with the delay in here.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Apr 11 23:09:33 2020
    src/smblib smbadd.c 1.45 1.46
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv21488

    Modified Files:
    smbadd.c
    Log Message:
    Removed unused variable.


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