Message300067
I observed the same issue, but the problem occurs mainly when reading data. In my proposed patch in issue29070, I use the existing pty._writen() to make sure all data is written. As Martin mentioned, reading is a problem. My patch proposes _os_timeout_read(), _os_readline(), _os_read_exactly(), _os_read_exhaust_exactly() to give fine-grained, deterministic control. Cheeky advertisement: Anybody cares to review issue29070 or cherry pick the pty._writen() and _os_read* parts? :) |
|
Date |
User |
Action |
Args |
2017-08-10 09:28:59 | Cornelius Diekmann | set | recipients:
+ Cornelius Diekmann, vstinner, martin.panter, cstratak |
2017-08-10 09:28:59 | Cornelius Diekmann | set | messageid: <1502357339.37.0.0733932142847.issue31158@psf.upfronthosting.co.za> |
2017-08-10 09:28:59 | Cornelius Diekmann | link | issue31158 messages |
2017-08-10 09:28:59 | Cornelius Diekmann | create | |
|