Message91823
The TextIOWrapper class is not thread-safe, because it calls [the
equivalent of] self.buffer.write(self.pending_bytes) before clearing
self.pending_bytes.
Of course the write() function will release the GIL, and another thread
may send the same pending_bytes again.
Patch is attached. Antoine, can you review it?
(_pyio.TextIOWrapper does no buffering.) |
|
Date |
User |
Action |
Args |
2009-08-21 12:35:00 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, nullnil |
2009-08-21 12:34:59 | amaury.forgeotdarc | set | messageid: <1250858099.98.0.754564433308.issue6750@psf.upfronthosting.co.za> |
2009-08-21 12:34:58 | amaury.forgeotdarc | link | issue6750 messages |
2009-08-21 12:34:58 | amaury.forgeotdarc | create | |
|