Add handlePacketReadError method in FdEventsReader.

This method allows the subclasses of FdEventsReader to decide whether
it should stop reading packet and unregister the fd immediately or just
ignore when some specific error other than EAGAIN or EINTR happens such
as ENOBUFS.

Bug: 232680956
Test: m
Change-Id: I19ee9390e78dcd0140e45fed75a1a36942450407
1 file changed
tree: 5cddf3408568989d8a53a9318de16a1b942275ff
  1. staticlibs/