From 9d9acb8ffea2e9558f8080a34da3c63c5c3515e7cfdbe298ab1e54235ff509d1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 25 Mar 2021 12:24:08 +0000 Subject: [PATCH] Accepting request 881292 from home:mnhauke - Update to version 1.5.0 * Added smbprotocol.exceptions.SMBConnectionClosed that is raised when trying to send or receive data on a connection that has been closed. * Added smbprotocol.exceptions.WrongPassword that is raised when some servers indicate the password is not correct or the account is locked out. * Do not attempt to reuse any cached connections that have been closed in smbclient * Added a lock when writing to the socket, only 1 thread can write a message at a single point in time * Revamped the SMB receiver code to simplify the logic and make it more durable + Removed the TCP recv thread for each connection, now each connection uses just 1 thread instead of 2. + Be more defensive when reading data from a socket to ensure we get all the data we require. + Handled server side FIN packets that close the connection unexpectedly, any requests waiting for a response will raise SMBConnectionClosed. OBS-URL: https://build.opensuse.org/request/show/881292 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smbprotocol?expand=0&rev=20 --- python-smbprotocol-1.4.0.tar.gz | 3 --- python-smbprotocol-1.5.0.tar.gz | 3 +++ python-smbprotocol.changes | 24 ++++++++++++++++++++++++ python-smbprotocol.spec | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) delete mode 100644 python-smbprotocol-1.4.0.tar.gz create mode 100644 python-smbprotocol-1.5.0.tar.gz diff --git a/python-smbprotocol-1.4.0.tar.gz b/python-smbprotocol-1.4.0.tar.gz deleted file mode 100644 index bc78e9d..0000000 --- a/python-smbprotocol-1.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f80ae1ba742f7336cc882914faa1ee65ef247278bf898b995cc0ecfeaa830847 -size 179951 diff --git a/python-smbprotocol-1.5.0.tar.gz b/python-smbprotocol-1.5.0.tar.gz new file mode 100644 index 0000000..0536751 --- /dev/null +++ b/python-smbprotocol-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c299b6a07a8455e636801e33e86f4890a52fc57019865b4f63231c52768e1a97 +size 182122 diff --git a/python-smbprotocol.changes b/python-smbprotocol.changes index eed0542..897efc5 100644 --- a/python-smbprotocol.changes +++ b/python-smbprotocol.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Thu Mar 25 09:39:12 UTC 2021 - Martin Hauke + +- Update to version 1.5.0 + * Added smbprotocol.exceptions.SMBConnectionClosed that is + raised when trying to send or receive data on a connection + that has been closed. + * Added smbprotocol.exceptions.WrongPassword that is raised when + some servers indicate the password is not correct or the + account is locked out. + * Do not attempt to reuse any cached connections that have been + closed in smbclient + * Added a lock when writing to the socket, only 1 thread can + write a message at a single point in time + * Revamped the SMB receiver code to simplify the logic and make + it more durable + + Removed the TCP recv thread for each connection, now each + connection uses just 1 thread instead of 2. + + Be more defensive when reading data from a socket to ensure + we get all the data we require. + + Handled server side FIN packets that close the connection + unexpectedly, any requests waiting for a response will + raise SMBConnectionClosed. + ------------------------------------------------------------------- Wed Feb 3 22:22:15 UTC 2021 - Martin Hauke diff --git a/python-smbprotocol.spec b/python-smbprotocol.spec index bd0d82b..8f7f469 100644 --- a/python-smbprotocol.spec +++ b/python-smbprotocol.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-smbprotocol -Version: 1.4.0 +Version: 1.5.0 Release: 0 Summary: SMBv2/v3 client for Python 2 and 3 License: MIT