Subj : src/smblib/smbadd.c To : CVS commit From : rswindell Date : Thu Apr 09 2020 10:34 pm 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. .