Questions tagged [epollet]

Epoll in Edge Trigger mode

The epoll Linux system call has two modes of operations. The "normal" mode, called level trigger mode, will report an event if it is currently active.

In edge trigger mode, the event will only be reported once. After being reported, that same fd will not be reported for that event until all pending data is consumed.

32 questions
0
votes
1 answer

epoll (EPOLLET) depends on count of read bytes?

I use epoll in edge triggered mode. to avoid starvation the code read MAX_FREAD_LENGTH bytes at once from one socket. later assembles the fragments till EOL occurs. I noticed that the epoll stuck when MAX_FREAD_LENGTH is small. I think it should…
Fabricator
  • 7
  • 1
  • 5
0
votes
1 answer

C: Data forwarding server using epoll ET fills the send buffer

I have the following situation. My server receives data from remote server (fd_server) and forwards it to the client (fd_client). I'm using edge triggered epoll so I can handle multiple clients and multiple server conncetions. Procedure: client…
jureso
  • 21
  • 3
1 2
3