Commit 625b044
gh-89544: Fix IDLE hang after Restart Shell while receiving output (GH-157644)
RPCClient.accept() reinitializes the SocketIO for the new connection,
but the receive buffer kept the partially received packet from the old
connection, so no message from the new user process was ever complete.
(cherry picked from commit b0dda15)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent d78d8f2 commit 625b044
3 files changed
Lines changed: 26 additions & 4 deletions
File tree
- Lib/idlelib
- idle_test
- Misc/NEWS.d/next/IDLE
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
7 | 26 | | |
8 | 27 | | |
9 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments