Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What's the limit for select() on winNT/2000 server?

Status
Not open for further replies.

tzhong

MIS
Mar 22, 2001
11
US
I wrote two little programs to compare the performance between IO Completion Port and windows select() with only one worker thread. As expected, their performance are close. But to my surprise, for the one using select()
to poll socket status, every time when the number of connections reaches some 400~800, connection requests begin to get refused. I am using select() with zero timeout to emulate Non-Blocking I/O, the server machine(win2000 server) has 4G memory and 2 933M cpus.

MSDN says that we can redefine FD_SETSIZE to set the max number of File handles. I tried both bigger number (1024) and leaving it alone(default: 64), but alway get the same behaviors: It doesn't matter at all, and the limit is
not a fix number either. And the IOCP server works just fine, no matter how many concurrent connections are posted.

So what's going on with select() on windows? Please help Gurus!!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top