don't close the connection upon a cancelled request

This commit is contained in:
Jack Robison 2020-04-29 12:31:38 -04:00
parent 00c0f48b02
commit ff7bed720a
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -87,7 +87,7 @@ class ClientSession(BaseClientSession):
raise
except asyncio.CancelledError:
log.info("cancelled sending %s to %s:%i", method, *self.server)
self.synchronous_close()
# self.synchronous_close()
raise
finally:
self.pending_amount -= 1