diff --git a/CHANGELOG.md b/CHANGELOG.md index b362f119..ab266c71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.5.1 - 2023-11-17 +### Fixed +- Set the default timeout value to None in WebSocket clients + ## 3.5.0 - 2023-10-26 ### Changed - Add timeout parameter to Websocket clients diff --git a/binance/__version__.py b/binance/__version__.py index dcbfb52f..0c11babd 100644 --- a/binance/__version__.py +++ b/binance/__version__.py @@ -1 +1 @@ -__version__ = "3.5.0" +__version__ = "3.5.1" diff --git a/binance/lib/constants.py b/binance/lib/constants.py deleted file mode 100644 index 5c41719c..00000000 --- a/binance/lib/constants.py +++ /dev/null @@ -1 +0,0 @@ -WEBSOCKET_TIMEOUT_IN_SECONDS = 5 diff --git a/binance/websocket/spot/websocket_api/__init__.py b/binance/websocket/spot/websocket_api/__init__.py index 7b6d0ff0..f889525e 100644 --- a/binance/websocket/spot/websocket_api/__init__.py +++ b/binance/websocket/spot/websocket_api/__init__.py @@ -1,7 +1,6 @@ from typing import Optional from binance.websocket.websocket_client import BinanceWebsocketClient -from binance.lib.constants import WEBSOCKET_TIMEOUT_IN_SECONDS class SpotWebsocketAPIClient(BinanceWebsocketClient): @@ -16,7 +15,7 @@ def __init__( on_error=None, on_ping=None, on_pong=None, - timeout=WEBSOCKET_TIMEOUT_IN_SECONDS, + timeout=None, logger=None, proxies: Optional[dict] = None, ): diff --git a/binance/websocket/spot/websocket_stream.py b/binance/websocket/spot/websocket_stream.py index 7f3f58da..ede1f4ad 100644 --- a/binance/websocket/spot/websocket_stream.py +++ b/binance/websocket/spot/websocket_stream.py @@ -1,7 +1,6 @@ from typing import Optional from binance.websocket.websocket_client import BinanceWebsocketClient -from binance.lib.constants import WEBSOCKET_TIMEOUT_IN_SECONDS class SpotWebsocketStreamClient(BinanceWebsocketClient): @@ -15,7 +14,7 @@ def __init__( on_ping=None, on_pong=None, is_combined=False, - timeout=WEBSOCKET_TIMEOUT_IN_SECONDS, + timeout=None, logger=None, proxies: Optional[dict] = None, ): diff --git a/docs/source/CHANGELOG.rst b/docs/source/CHANGELOG.rst index 1f3a6140..f94948cc 100644 --- a/docs/source/CHANGELOG.rst +++ b/docs/source/CHANGELOG.rst @@ -2,6 +2,15 @@ Changelog ========= +3.5.1 - 2023-11-17 +------------------ + +Fixed +^^^^^^^ + +* Set the default timeout value to None in WebSocket clients + + 3.5.0 - 2023-10-26 ------------------