Files
Ayush Ranjan 65783256ca Fix fdnotifier.AddFD() to handle the case when queue already has events.
`notifier.addFD()` was simply updating the FD map, assuming that the queue is
new and has no events registered.

However, this assumption may not hold for some callers of fdnotifier.AddFD(),
notably transport.connectionedEndpoint.SetBoundSocketFD(). This situation can
arise if the application does socket(2) -> epoll_ctl(EPOLL_CTL_ADD) -> bind(2).
This change gets rid of the said assumption.

Fixes #9848

PiperOrigin-RevId: 595171718
2024-01-02 11:44:45 -08:00
..