Skip to content

Commit b8cc3d5

Browse files
authored
Fix variable declaration in AsyncSocks5Connection __init__ method (#501)
* Fix variable declaration in Socks5Connection and AsyncSocks5Connection __init__ methods
1 parent e75cf70 commit b8cc3d5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## 0.14.7
8+
9+
- Fix AttributeError that happened when Socks5Connection were terminated
10+
711
## 0.14.6 (February 1st, 2022)
812

913
- Fix SOCKS support for `http://` URLs. (#492)

httpcore/_async/socks_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def __init__(
206206
)
207207
self._connect_lock = AsyncLock()
208208
self._connection: typing.Optional[AsyncConnectionInterface] = None
209-
self._connection_failed = False
209+
self._connect_failed = False
210210

211211
async def handle_async_request(self, request: Request) -> Response:
212212
timeouts = request.extensions.get("timeout", {})

httpcore/_sync/socks_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def __init__(
206206
)
207207
self._connect_lock = Lock()
208208
self._connection: typing.Optional[ConnectionInterface] = None
209-
self._connection_failed = False
209+
self._connect_failed = False
210210

211211
def handle_request(self, request: Request) -> Response:
212212
timeouts = request.extensions.get("timeout", {})

0 commit comments

Comments
 (0)