Commit 99423c0
committed
Fix bug in Trio's _read_exactly()
This method calls Trio's `receive_some(n)`, which I found out can actually
return fewer than `n` bytes. This is only noticeable on large messages
(query results of around 80KB triggered the issue). The solution is to call
`receive_some(...)` in a loop until `n` bytes has been received.1 parent a18e756 commit 99423c0
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
0 commit comments