Commit dfb49ee
committed
pkg/hostagent: Ensure calling
portfwd:
- Change `ClosableListeners.Close()` to return `error`
- Change `Forwarder.Close()` to return `error`
- Use `HostAgent.cleanUp()` instead of `defer` to calling `ClosableListeners.Close()`
Signed-off-by: Norio Nomura <[email protected]>HostAgent.close() before cancelling the context.1 parent 2beb888 commit dfb49ee
3 files changed
+28
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
471 | 464 | | |
472 | 465 | | |
473 | 466 | | |
| |||
603 | 596 | | |
604 | 597 | | |
605 | 598 | | |
| 599 | + | |
606 | 600 | | |
607 | 601 | | |
608 | 602 | | |
| |||
674 | 668 | | |
675 | 669 | | |
676 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
677 | 674 | | |
678 | 675 | | |
679 | 676 | | |
| |||
806 | 803 | | |
807 | 804 | | |
808 | 805 | | |
809 | | - | |
810 | 806 | | |
811 | 807 | | |
812 | 808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
0 commit comments