diff -pruN 2.7.1-1/debian/changelog 2.7.2-1/debian/changelog
--- 2.7.1-1/debian/changelog	2025-04-05 11:17:20.000000000 +0000
+++ 2.7.2-1/debian/changelog	2025-11-06 09:06:09.000000000 +0000
@@ -1,3 +1,9 @@
+python-socks (2.7.2-1) unstable; urgency=medium
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Thu, 06 Nov 2025 10:06:09 +0100
+
 python-socks (2.7.1-1) unstable; urgency=medium
 
   * New upstream release
diff -pruN 2.7.1-1/python_socks/_version.py 2.7.2-1/python_socks/_version.py
--- 2.7.1-1/python_socks/_version.py	2025-02-01 18:12:57.000000000 +0000
+++ 2.7.2-1/python_socks/_version.py	2025-08-01 06:37:53.000000000 +0000
@@ -1,2 +1,2 @@
 __title__ = 'python-socks'
-__version__ = '2.7.1'
+__version__ = '2.7.2'
diff -pruN 2.7.1-1/python_socks/async_/trio/_connect.py 2.7.2-1/python_socks/async_/trio/_connect.py
--- 2.7.1-1/python_socks/async_/trio/_connect.py	2025-02-01 18:12:57.000000000 +0000
+++ 2.7.2-1/python_socks/async_/trio/_connect.py	2025-08-01 06:37:53.000000000 +0000
@@ -18,7 +18,11 @@ async def connect_tcp(
     if local_addr is not None:  # pragma: no cover
         await sock.bind(local_addr)
 
-    await sock.connect((host, port))
+    try:
+        await sock.connect((host, port))
+    except OSError:
+        sock.close()
+        raise
     return sock
 
 
