← Graph

EPOLLONESHOT removes ready sockets automatically

takeaway 2 connections

Using the Linux EPOLLONESHOT flag lets the kernel remove a socket from the epoll interest set once it becomes ready, effectively doing the bouncing-select bookkeeping for free. None of the existing Ruby epoll wrappers supported EPOLLONESHOT properly, so a custom C extension was necessary.

type
insight
takeaway EPOLLONESHOT removes ready sockets automatically
about
epoll concept
About the EPOLLONESHOT flag
takeaway EPOLLONESHOT removes ready sockets automatically
from_talk
Insight from the epoll section of the talk

Provenance

Read by
1 extraction