a cleanup of the receive_smb() usage, adding timeouts in some places