diff -Nru python-websockets-13.1/debian/changelog python-websockets-13.1/debian/changelog
--- python-websockets-13.1/debian/changelog	2024-10-14 16:53:51.000000000 +0800
+++ python-websockets-13.1/debian/changelog	2024-10-17 22:07:18.000000000 +0800
@@ -1,3 +1,9 @@
+python-websockets (13.1-2.1) UNRELEASED; urgency=medium
+
+  *Fix TimeoutError FROM exc_val 
+
+ -- Gui-Yue <yuemeng.gui@gmail.com>  Thu, 17 Oct 2024 22:07:18 +0800
+
 python-websockets (13.1-2) unstable; urgency=medium
 
   * Bump WEBSOCKETS_TESTS_TIMEOUT_FACTOR to 200 during build (to fix s390x
diff -Nru python-websockets-13.1/debian/patches/fix_timeout.patch python-websockets-13.1/debian/patches/fix_timeout.patch
--- python-websockets-13.1/debian/patches/fix_timeout.patch	1970-01-01 08:00:00.000000000 +0800
+++ python-websockets-13.1/debian/patches/fix_timeout.patch	2024-10-17 22:07:18.000000000 +0800
@@ -0,0 +1,11 @@
+--- a/tests/legacy/test_client_server.py
++++ b/tests/legacy/test_client_server.py
+@@ -274,7 +274,7 @@
+     def stop_server(self):
+         self.server.close()
+         self.loop.run_until_complete(
+-            asyncio.wait_for(self.server.wait_closed(), timeout=1)
++            asyncio.wait_for(self.server.wait_closed(), timeout=5)
+         )
+ 
+     @contextlib.contextmanager
diff -Nru python-websockets-13.1/debian/patches/series python-websockets-13.1/debian/patches/series
--- python-websockets-13.1/debian/patches/series	1970-01-01 08:00:00.000000000 +0800
+++ python-websockets-13.1/debian/patches/series	2024-10-17 22:06:14.000000000 +0800
@@ -0,0 +1 @@
+fix_timeout.patch
