python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Cannot set file descriptor to nonblocking
How does the following execution possible:
int set_result = fcntl(fd, F_SETFD, O_NONBLOCK); // set_result: 0
int get_result = fcntl(fd, F_GETFD); // get_result: 0
For some reason fcntl c...
Karial
Votes: 0
Answers: 1
Does IOCP and io_uring read/write Asynchronous?
As far as I konw. Linux epoll is asynchronous notification. when a file descriptor become readable/writeable/acceptable, epoll_wait will return this fd. But read or write is still synchronous, will bl...
LGG
Votes: 0
Answers: 1
Multithreaded Server C++, Socket Programming
I am learning socket programming. I have built a client server program, where each client is handled by an individual thread in server program. But after a certain number of threads the system's perfo...

user18336881
Votes: 0
Answers: 2
Semantically, why does epoll_wait sends me EPOLLIN, after read end had been shut down?
The question is straightforward. The shutdown(..., SHUT_RD) was called on the socket after read has returned zero. The epoll_wait keeps sending me EPOLLIN event for the socket.
I know I can, and must ...
user14063792468
Votes: 0
Answers: 2