Commit 2e14c59
Check for closed unsolicited messages channel
The unsolicited messages channel is used to forward
unsolicited messages like multicast messages to the user.
However, if none are sent by the kernel, the connection
stays active even if the rx side of the channel was already
dropped. This finally leads to resource exhaustion (e.g. too
many open file descriptors) if new connections are repeatedly
opened.
Therefore, explicitly check if the channel is already closed
and if so, take the tx side to allow for shutdown of the connection.
Signed-off-by: Florian Kauer <[email protected]>1 parent 61b8676 commit 2e14c59
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
0 commit comments