Skip to content

Allow select()ing up to 1024 file descriptors on Windows - #2569

Merged
laanwj merged 1 commit into
bitcoin:masterfrom
sipa:win1024fd
Apr 29, 2013
Merged

laanwj merged 1 commit into
bitcoin:masterfrom
sipa:win1024fd

Conversation

@sipa

@sipa sipa commented Apr 25, 2013

Copy link
Copy Markdown
Member

Closes #2408.

@gavinandresen

Copy link
Copy Markdown
Contributor

Is there a good way to test this? It is simple enough that I'd be satisified with a link to (say) a MSDN page that says this is what you do to select() up to 1024 file descriptors on windows....

@jgarzik

jgarzik commented Apr 26, 2013

Copy link
Copy Markdown
Contributor

agreed, @gavinandresen

@Diapolo

Diapolo commented Apr 26, 2013

Copy link
Copy Markdown

@BitcoinPullTester

Copy link
Copy Markdown

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/33912d1f237537f51f29ca06e3e396f04aeb4671 for binaries and test log.
This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/
Contact BlueMatt on freenode if something looks broken.

@laanwj

laanwj commented Apr 28, 2013

Copy link
Copy Markdown
Member

ACK

@Diapolo

Diapolo commented Apr 28, 2013

Copy link
Copy Markdown

For Windows An application should make no assumptions about the availability of a certain number of sockets., so I hope we don't rely on the number set here in any way?

@gavinandresen

Copy link
Copy Markdown
Contributor

ACK as "better than the code we have now."

@sipa

sipa commented Apr 29, 2013

Copy link
Copy Markdown
Member Author

@Diapolo This is really just about how many sockets we watch simultaneously. If not enough sockets are available for what the user requests, opening them will just fail.

@Diapolo

Diapolo commented Apr 29, 2013

Copy link
Copy Markdown

ACK

laanwj added a commit that referenced this pull request Apr 29, 2013
Allow select()ing up to 1024 file descriptors on Windows
@laanwj
laanwj merged commit 7226806 into bitcoin:master Apr 29, 2013
@sipa
sipa deleted the win1024fd branch May 3, 2013 18:47
@fanquake fanquake mentioned this pull request May 20, 2013
laudney pushed a commit to reddcoin-project/reddcoin-3.10 that referenced this pull request Mar 19, 2014
Allow select()ing up to 1024 file descriptors on Windows
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Artificial 63 connection limit on Windows

6 participants