Commit ae77274
committed
mitogen: _first_stage: Add timeout handling
Do not wait/block forever for data to be read.
Add a test for this.
The test can be run using the following command:
PYTHONPATH=$(pwd)/tests:$PYTHONPATH python -m unittest -v tests.first_stage_test
Signed-off-by: Marc Hartmayer <[email protected]>1 parent aa7d95b commit ae77274
2 files changed
+51
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
1381 | 1384 | | |
1382 | 1385 | | |
1383 | 1386 | | |
| |||
1418 | 1421 | | |
1419 | 1422 | | |
1420 | 1423 | | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
1421 | 1427 | | |
1422 | 1428 | | |
1423 | 1429 | | |
| |||
1439 | 1445 | | |
1440 | 1446 | | |
1441 | 1447 | | |
1442 | | - | |
1443 | | - | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
1444 | 1458 | | |
1445 | 1459 | | |
1446 | 1460 | | |
| |||
1486 | 1500 | | |
1487 | 1501 | | |
1488 | 1502 | | |
| 1503 | + | |
1489 | 1504 | | |
1490 | 1505 | | |
1491 | 1506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments