Message146998
> This is a hairy issue
Indeed.
Performing partial read/write may sound imperfect, but using buffered I/O around non-blockind FD is definitely not a good idea.
Also, the advantage of the current approach is that at least, no data is ever lost (and changing the behavior to raise a BlockingIOError might break some code out there in the wild).
Note that Java's BufferedInputStream and ReadableByteChannel also return partial reads.
So I'm somewhat inclined to keep the current behavior (it would however probably be a good idea to update the documentation to warn about this limitation, though). |
|
Date |
User |
Action |
Args |
2011-11-04 08:24:30 | neologix | set | recipients:
+ neologix, pitrou, benjamin.peterson, stutzbach, sbt, petri.lehtinen |
2011-11-04 08:24:30 | neologix | set | messageid: <1320395070.26.0.825412055288.issue13322@psf.upfronthosting.co.za> |
2011-11-04 08:24:29 | neologix | link | issue13322 messages |
2011-11-04 08:24:29 | neologix | create | |
|