sbt <[email protected]> added the comment:
Testing the patch a bit more thoroughly, I found that data received from the
readable end of the pipe can be corrupted by the C implementation. This seems
to be because two of the previously dormant codepaths did not properly maintain
the necessary invariants.
I got the failures to go away by adding
self->pos += avail;
in two places. However, I really do not know what all the attributes mean.
(Should self->raw_pos also be modified...?) Someone familiar with the code
would need to check whether things are being done properly. This new patch
adds some XXX comments in places in bufferedio.c which I am unsure about.
----------
Added file: http://bugs.python.org/file23628/write_blockingioerror.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13322>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com