Commit 192d730
capture OSErrors while receiving data (hardbyte#87)
Handle OSErrors while receiving data off socketcan native.
Both sock.recv() and select.select(sock) throw errors when the device
to which the socket is bound goes down.
This makes the notifier thread survive such a condition
(and bail out on the log)
Closes: hardbyte#861 parent 695fef7 commit 192d730
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
| |||
335 | 339 | | |
336 | 340 | | |
337 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
338 | 350 | | |
339 | | - | |
340 | | - | |
| 351 | + | |
341 | 352 | | |
342 | | - | |
343 | 353 | | |
344 | 354 | | |
345 | 355 | | |
| |||
0 commit comments