Author martin.panter
Recipients Paulo Costa, gvanrossum, martin.panter, vstinner, yselivanov
Date 2016-02-03.04:52:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454475154.17.0.762721371541.issue26270@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe I misunderstand the asyncio protocols, transports, streams, etc too :) but last time I looked they all seemed to buffer your write data and send it in the background. E.g. in the echo-client-using-streams example, there is a writer.write() call that does not use “yield from”.

Does asyncio have an easy way for a coroutine to write to a socket (or file descriptor) and block (suspend the coroutine) until the write has finished (or the data fits into a finite buffer)? E.g. how would you upload a multi-megabyte file?
History
Date User Action Args
2016-02-03 04:52:34martin.pantersetrecipients: + martin.panter, gvanrossum, vstinner, yselivanov, Paulo Costa
2016-02-03 04:52:34martin.pantersetmessageid: <1454475154.17.0.762721371541.issue26270@psf.upfronthosting.co.za>
2016-02-03 04:52:34martin.panterlinkissue26270 messages
2016-02-03 04:52:33martin.pantercreate