Commit 1e25752
authored
notif/fix: Avoid CPU busy loops on litep2p full shutdown (#521)
This PR fixes an issue that caused extensive CPU busy loops, which
manifested with multiple spammed logs:
```
transport service closed
transport service closed
transport service closed
```
- When the litep2p backend is dropped, there's no point in keeping any
zombie task active
- litep2p dropping results in transport manager dropping, which
invalidates any user of the transport service
- to avoid polling `service.next()` in a loop to return `None` every
call, this PR shuts down the notification protocols properly
Part of:
- paritytech/polkadot-sdk#10821
Signed-off-by: Alexandru Vasile <[email protected]>1 parent 8aaeba4 commit 1e25752
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1773 | 1773 | | |
1774 | 1774 | | |
1775 | 1775 | | |
1776 | | - | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
1777 | 1785 | | |
1778 | 1786 | | |
1779 | 1787 | | |
| |||
0 commit comments