system-linux: handle hotplug event socket ENOBUFS errors openwrt-18.06
authorAlin Nastac <alin.nastac@gmail.com>
Thu, 31 Jan 2019 10:20:29 +0000 (11:20 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 31 Jan 2019 20:29:27 +0000 (21:29 +0100)
commita2aba5c7ae574452a9f81e9d788afecdd8ec07b2
tree25166c7d5a9a7ccb16dc3cbc6e4267ea749cefea
parentd0fa124eac8bb0e35680d80ea719eada873267be
system-linux: handle hotplug event socket ENOBUFS errors

Hotplug events are no longer handled after socket RX queue is
overrun. The issue has been fixed by:
  - setting SO_RCVBUF initially to 65535
  - doubling SO_RCVBUF value each time RX queue gets overrun

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
system-linux.c