- 
  Notifications
 You must be signed in to change notification settings 
- Fork 1.1k
Commit aad2e48
aiorepl: Use blocking reads for raw REPL and raw paste.
Raw REPL mode is generally used as a command channel where all stdio
traffic is related directly to the raw commands and responses sent.
For this to work in aiorepl we need to ensure background tasks don't sent/
receive anything on stdio else the command channel will be corrupted.
The simplest way to achieve this is to make the raw commands blocking and
atomic rather than asyncio, assuming the user wont leave the device in raw
mode for too long at any one time.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parent 96bd01e commit aad2e48
2 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 161 | 161 |  | |
| 162 | 162 |  | |
| 163 | 163 |  | |
| 164 | - | ||
| 164 | + | ||
| 165 | 165 |  | |
| 166 | 166 |  | |
| 167 | 167 |  | |
|  | |||
| 239 | 239 |  | |
| 240 | 240 |  | |
| 241 | 241 |  | |
| 242 | - | ||
| 242 | + | ||
| 243 | 243 |  | |
| 244 | 244 |  | |
| 245 | 245 |  | |
|  | |||
| 248 | 248 |  | |
| 249 | 249 |  | |
| 250 | 250 |  | |
| 251 | - | ||
| 251 | + | ||
| 252 | 252 |  | |
| 253 | 253 |  | |
| 254 | 254 |  | |
|  | |||
| 267 | 267 |  | |
| 268 | 268 |  | |
| 269 | 269 |  | |
| 270 | - | ||
| 270 | + | ||
| 271 | + | ||
| 272 | + | ||
| 273 | + | ||
| 274 | + | ||
| 275 | + | ||
| 271 | 276 |  | |
| 272 | 277 |  | |
| 273 | 278 |  | |
|  | |||
| 276 | 281 |  | |
| 277 | 282 |  | |
| 278 | 283 |  | |
| 279 | - | ||
| 284 | + | ||
| 280 | 285 |  | |
| 281 | 286 |  | |
| 282 | 287 |  | |
| 283 | 288 |  | |
| 284 | 289 |  | |
| 285 | 290 |  | |
| 286 | 291 |  | |
| 287 | - | ||
| 292 | + | ||
| 288 | 293 |  | |
| 289 | 294 |  | |
| 290 | 295 |  | |
|  | |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 1 | 1 |  | |
| 2 | - | ||
| 2 | + | ||
| 3 | 3 |  | |
| 4 | 4 |  | |
| 5 | 5 |  | |
|  | |||
0 commit comments