Page MenuHomeFreeBSD

Switch from FD_SETSIZE to getdtablesize().
ClosedPublic

Authored by araujo on Jan 18 2016, 2:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 30, 7:28 PM
Unknown Object (File)
Wed, Mar 25, 9:44 PM
Unknown Object (File)
Tue, Mar 24, 2:14 AM
Unknown Object (File)
Sun, Mar 22, 6:37 AM
Unknown Object (File)
Sat, Mar 21, 9:28 AM
Unknown Object (File)
Fri, Mar 20, 10:14 PM
Unknown Object (File)
Thu, Mar 19, 9:24 PM
Unknown Object (File)
Thu, Mar 19, 4:18 AM
Subscribers

Details

Summary

@rodrigc requested to switch to getdtablesize() as it will be more close with
what was implemented on OpenBSD. I have no objection with it as it has a good
side and the FD can be tunable.

However, it will be slower than FD_SETSIZE as it needs to calloc more than 1024.
Not a big deal to be honest.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2159
Build 2168: arc lint + arc unit

Event Timeline

araujo retitled this revision from to Switch from FD_SETSIZE to getdtablesize()..
araujo updated this object.
araujo edited the test plan for this revision. (Show Details)
araujo added reviewers: rodrigc, bapt.
araujo added a subscriber: rodrigc.
rodrigc edited edge metadata.
This revision is now accepted and ready to land.Jan 22 2016, 2:33 AM
This revision was automatically updated to reflect the committed changes.