poll() performs a similar task to select(): it waits for one of a set of file descriptors to become ready to perform I/O.
Questions tagged [poll-syscall]
18 questions
0
votes
1 answer
Why does a select() call have a timeout? What are reasonable values for it in common scenarios?
I am wondering about the timeout value in a POSIX select() call. I understand why one may want value of 0 (for polling on the file descriptors). What other values are commonly used, and to what purpose?

user7610
- 25,267
- 15
- 124
- 150
0
votes
3 answers
Why is this benchmark code using such high CPU?
The code below works, it's sending all the correct data, and it's receiving the correct data.
When I use it to benchmark a very fast server, the benchmark's CPU usage is ~10%. However, when I benchmark a slow server, that rises to ~50% – the same…

Max
- 2,760
- 1
- 28
- 47
-1
votes
1 answer
Both server and socket reporting ECONNRESET. Whats going on?
I have a C++ server and client.
I am using the poll() system call to monitor sockets on the server for read-ready, write-ready and errors.
For some of the connections, I see the poll() detects an ECONNRESET after sending out a bunch of data and…

siri
- 123
- 1
- 13