Andrew Dunham 3f4d51c588 net/dns: don't send on closed channel when message too large
Previously, if a DNS-over-TCP message was received while there were
existing queries in-flight, and it was over the size limit, we'd close
the 'responses' channel. This would cause those in-flight queries to
send on the closed channel and panic.

Instead, don't close the channel at all and rely on s.ctx being
canceled, which will ensure that in-flight queries don't hang.

Fixes #6725

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I8267728ac37ed7ae38ddd09ce2633a5824320097
2022-12-13 15:54:17 -05:00
..
2022-11-04 07:25:42 -07:00
2022-11-04 07:25:42 -07:00
2022-11-04 07:25:42 -07:00
2022-11-04 07:25:42 -07:00
2022-09-29 13:36:13 -07:00
2022-11-04 07:25:42 -07:00
2022-11-04 07:25:42 -07:00
2022-11-04 07:25:42 -07:00
2022-11-04 07:25:42 -07:00