Re: Non-blocking Accept in C

From: Larry Griffin (
Date: Thu Jan 13 2000 - 10:15:52 EST

< When you say you are delaying between checks, are you doing this:

while (TRUE) { select(n, &readfds, NULL, NULL, 0.5); } >

Actually I was sleeping for a second [sleep(1)] in this test program to
let the server grab some CPU. My select had a null timer. At Rodrigo's
advice I increased it to 500ms. Works now. Thanks for the advice.
Larry G.
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to

This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:29 EST