Skip to content

Commit d464c58

Browse files
author
Jens Jorgensen
committed
fix Future exception never retrieved in create_connection
1 parent 6c770dc commit d464c58

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎uvloop/loop.pyx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,12 @@ cdef class Loop:
19721972
lai = &lai_static
19731973

19741974
if len(fs):
1975-
await aio_wait(fs)
1975+
try:
1976+
await aio_wait(fs)
1977+
except asyncio.CancelledError as exc:
1978+
for fut in fs:
1979+
fut.cancel()
1980+
raise exc from None
19761981

19771982
if rai is NULL:
19781983
ai_remote = f1.result()

0 commit comments

Comments
 (0)