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 ngg
Recipients gvanrossum, ngg, vstinner, yselivanov
Date 2016-02-17.08:25:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455697517.62.0.31523339154.issue26371@psf.upfronthosting.co.za>
In-reply-to
Content
If I want to write a TCP client which communicates back and forth with the server (both parties can send messages anytime) then it would be really easy to use it the following way:
Start a background thread with asyncore.loop(), and you can send messages easily, and handle_read() will be called automatically whenever data is received.
If this usage is not supported and I understand correctly then I can only send messages before starting the loop or callbacks from the loop (handle_accept, handle_read, etc).
This seems to be a much more difficult and error-prone way (at least for pre-Future python versions)
History
Date User Action Args
2016-02-17 08:25:17nggsetrecipients: + ngg, gvanrossum, vstinner, yselivanov
2016-02-17 08:25:17nggsetmessageid: <1455697517.62.0.31523339154.issue26371@psf.upfronthosting.co.za>
2016-02-17 08:25:17ngglinkissue26371 messages
2016-02-17 08:25:17nggcreate