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.
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.