mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
RawDCERPCTest: ignore errors in smb_pipe_socket.close()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14356
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit b51ab42284
)
This commit is contained in:
parent
189e4e8b26
commit
9e35e26e03
@ -56,7 +56,17 @@ class smb_pipe_socket(object):
|
||||
return
|
||||
|
||||
def close(self):
|
||||
self.smbconn.close(self.smbfid)
|
||||
try:
|
||||
self.smbconn.close(self.smbfid)
|
||||
except NTSTATUSError as e:
|
||||
if e.args[0] == NT_STATUS_CONNECTION_DISCONNECTED:
|
||||
pass
|
||||
elif e.args[0] == NT_STATUS_PIPE_DISCONNECTED:
|
||||
pass
|
||||
elif e.args[0] == NT_STATUS_IO_TIMEOUT:
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
del self.smbconn
|
||||
|
||||
def settimeout(self, timeo):
|
||||
|
Loading…
Reference in New Issue
Block a user