keepsimple1 / mdns-sd

Rust library for mDNS based Service Discovery
Apache License 2.0
89 stars 38 forks source link

signal event key is possible to overlap with socket poll ids #153

Closed keepsimple1 closed 7 months ago

keepsimple1 commented 7 months ago

In a recent test, I noticed that the signal event key (hardcoded to 7) is possible to overlap with socket poll ids, and then causes the socket cannot be polled as we process signal event key first.

This patch is to change the signal event key to use usize::MAX - 1 to avoid such overlapping.