On 7 Mar 2017, at 16:03, Harald Welte laforge@gnumonks.org wrote:
Hi Holger,
Hey LaForge,
what's the problem / disadvantage with the simple POLERR hack/workaround? Yes, it's not elegant, but it should come without any performance overhead, as poll will only return when actual errors are pending in the queue.
The logic is FD_ISSET(fd, &readset) => POLLIN | POLLERR. We speculate that there is an error for every possible and force another recvmsg call.
Not an act of beauty but only done when there is work anyway and not performance critical. At the same time the emulate select will poll seems to be working(tm) so we might use that.
holger