Open rob-blackbourn opened 3 years ago
Unfortunately this isn't implement yet, the docs for re authenticating an expired session can be found at https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/d11845f6-c848-4255-960a-eb8f46f3e703 but a lot of this logic is internal in the session.py
file.
You could try to reset your connection after that pause with smbclient.reset_connection_cache()
to ensure the subsequent commands are done with a new session.
Thanks. I'll give that a try.
I have a long running process. After "a while" it fails to write with the following:
Looking here I can see this corresponds to
STATUS_NETWORK_SESSION_EXPIRED
.Is there a way to handle this?