Repository navigation
Commit a8474ce
`socket.makefile("rwb")` passes the same raw stream to both sides of a `BufferedRWPair`. When the pair is deallocated, the reader closes the stream before the writer can flush its buffer.
Release the writer first, matching the order in `BufferedRWPair.close()`.
(cherry picked from commit dc222c8)
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
1 parent 697da9c commit a8474ce
3 files changed
Lines changed: 13 additions & 1 deletion
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules/_io
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2296 | 2296 | | |
2297 | 2297 | | |
2298 | 2298 | | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
2299 | 2308 | | |
2300 | 2309 | | |
2301 | 2310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2302 | 2302 | | |
2303 | 2303 | | |
2304 | 2304 | | |
2305 | | - | |
| 2305 | + | |
2306 | 2306 | | |
| 2307 | + | |
2307 | 2308 | | |
2308 | 2309 | | |
2309 | 2310 | | |
| |||
0 commit comments