strongswan / davici

Decoupled Asynchronous VICI
GNU Lesser General Public License v2.1
20 stars 18 forks source link

Using davici with EPOLLET #4

Closed ambrice closed 3 years ago

ambrice commented 4 years ago

I had an issue using davici with edge-triggered epoll events. I would sometimes get two events before I could read them, and it looks like davici_read() would process one event only and return 0. But also, if there are no events left, davici_read() returns 0. It seems like either davici_read() should process events until EAGAIN, or else it should return EAGAIN if there are no events to process, so that I can call davici_read() repeatedly until EAGAIN.

tobiasbrunner commented 3 years ago

It seems like either davici_read() should process events until EAGAIN

That seems simple enough to implement. I pushed that to the 4-epollet branch (#7).