ido / libvma-old

Automatically exported from code.google.com/p/libvma
Other
0 stars 1 forks source link

recvfrom_zcopy in epoll_wait loop #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In epoll_wait loop with multiple FDs registered should I call recvfrom_zcopy 
once only?

Otherwise if there is a continuous stream of UDP packets incoming it always 
returns recvfrom_zcopy > 0 and I never get any chance to get to the other FD.

See attached file stest.c - line #91. Is it correct (provides optimal 
performance) to attempt to receive only once?

Thanks

Original issue reported on code.google.com by denis.iv...@gmail.com on 13 Jul 2014 at 10:07

Attachments: