Answer the question
In order to leave comments, you need to log in
How to bypass return of epoll_wait function?
Hello. So I decided to program the network on a low-level bible from the "box" of libraries from linux! Everything seems to add up, but there is one moment when a connection (accept) is caught from the listening sockets, it is added to the tracking set with epoll_white and immediately returns with event 4. How? Logically, if you connected to me, I expect "news" from you with the number 1. I don't understand this bug at all, or I have some kind of wedge in my brain. Of course, I ignore this event, but the system call works, how to get rid of it if, let's say, I have frequent tcp connection interruptions planned, it's a pipets how expensive and doesn't fit in with the logic, where did I miss?
Answer the question
In order to leave comments, you need to log in
when a connection (accept) is caught from listening sockets, it is added to the set for tracking by epoll_white and immediately returned with event 4. How? Logically, if you connected to me, I expect "news" from you with the number 1.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question