This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients asvetlov, christian.heimes, tomchristie, yselivanov
Date 2019-05-30.14:42:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Sorry, that's how asyncio is designed.

Andrew, couldn't we provide a "stream.terminate()" method (not a coroutine) that would do the following:

* close the transport
* set a flag in the protocol that the stream has been terminated.  When the flag is set, the protocol simply ignores all errors (i.e. they are never shown to the user or logged)

This way Tom could have a weakref to the stream object from his high-level wrapper, and whenever the wrapper object is dereferenced it could terminate its stream.

> Sorry, that's how asyncio is designed.

I think it's a real problem, let's try to find out if we can provide a solution.
Date User Action Args
2019-05-30 14:42:53yselivanovsetrecipients: + yselivanov, christian.heimes, asvetlov, tomchristie
2019-05-30 14:42:53yselivanovsetmessageid: <>
2019-05-30 14:42:53yselivanovlinkissue36709 messages
2019-05-30 14:42:53yselivanovcreate