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 primal
Recipients asvetlov, paul.moore, primal, steve.dower, tim.golden, yselivanov, zach.ware
Date 2019-10-14.10:42:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571049755.46.0.456741846567.issue38471@roundup.psfhosted.org>
In-reply-to
Content
Expected behaviour for DatagramTransport (from_SelectorDatagramTransport):

transport.close() called.
If there is data in the write buffer, don't call connection_lost.
When all data is written and the buffer is empty, check if connection has been lost and if so, call connection_lost

However for _ProactorDatagramTransport, if close is called with data in the buffer, _loop_writing returns immediately, so it never gets to the point of sending the remaining data or calling connection_lost. The code for calling connection_lost inside _loop_writing is completely unreachable, because the method immediately returns if the connection has been lost.
History
Date User Action Args
2019-10-14 10:42:35primalsetrecipients: + primal, paul.moore, tim.golden, asvetlov, zach.ware, yselivanov, steve.dower
2019-10-14 10:42:35primalsetmessageid: <1571049755.46.0.456741846567.issue38471@roundup.psfhosted.org>
2019-10-14 10:42:35primallinkissue38471 messages
2019-10-14 10:42:35primalcreate