Message 217104 - Python tracker
Message217104
| Author | giampaolo.rodola |
|---|---|
| Recipients | akira, asvetlov, christian.heimes, giampaolo.rodola, gvanrossum, josh.r, josiah.carlson, neologix, pitrou, rosslagerwall, yselivanov |
| Date | 2014-04-23.23:48:48 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1398296929.22.0.467585544666.issue17552@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I think asyncio would be better off using os.sendfile() / TransmitFile directly, in fact the current patch explicitly does not support non-blocking sockets (I couldn't see any sane approach to do that). Here's an example of how os.sendfile() should be used in an async manner: https://code.google.com/p/pyftpdlib/source/browse/tags/release-0.7.0/pyftpdlib/ftpserver.py#1035 asyncio should be doing something very similar to that and do the necessary stuff so that you can "yield from transport.sendfile(file)". Actually I can see what I can do in that regard after I'm finished with this. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-04-23 23:48:49 | giampaolo.rodola | set | recipients: + giampaolo.rodola, gvanrossum, pitrou, christian.heimes, josiah.carlson, asvetlov, neologix, akira, rosslagerwall, yselivanov, josh.r |
| 2014-04-23 23:48:49 | giampaolo.rodola | set | messageid: <1398296929.22.0.467585544666.issue17552@psf.upfronthosting.co.za> |
| 2014-04-23 23:48:49 | giampaolo.rodola | link | issue17552 messages |
| 2014-04-23 23:48:48 | giampaolo.rodola | create | |